Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Can't change the logo on my WordPress page

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #203720
    domainatrix
    Participant

    I would like the logo on my pages and posts to be a different color from the logo on my front page.

    The research I am finding seems to complicate the matter.

    Can someone check out my site and help me figure out what to do? I have custom templates for most of my pages.

    http://www.dev.goodforthepalate.com

    I can share code if helpful, but I’m not even sure what to share.

    #203729
    Alen
    Participant

    @domainatrix you don’t have to create a new template. Find the piece of code, in your templates, that displays your logo. Then based on what is being viewed (page, post, etc) display appropriate version of the logo.

    Something like


    <?php if ( is_page('about') ) { echo '<img src="about_logo.png" alt="">'; } else { echo '<img src="default_logo.png" alt="">'; } ?>

    Here’s complete list of WordPress conditionals: https://codex.wordpress.org/Conditional_Tags

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.