• Hello,

    at the moment I have to build a WordPress and it should be 3 logos, which are shown depending on the page (different page, different product, different logo). Example:

    – Logo-1.png: if on Home
    – Logo-2.png: if on Screens
    – Logo-3.png: on all other pages

    I’d put logo 3 into wp regularly, but what’s with the two other ones?
    I read somewhere else that I would also need a child theme, but not how. Anyway, I do have a child theme.
    Some addition like this (see below)? But to be honest I don’t know how I can reference to the original logo and let it disappear, then display the other logos, depending on the page the user is on (and where to actually put it)?

    <?php if(is_page('screens')){ ?>
    <img src="/wp-content/themes/themename-child/logo-2.png" />
    <?php } elseif(is_page('home')){ ?>
    <img src="/wp-content/themes/themename-child/logo-1.png" />
    <?php } else { ?>
    <img src="/wp-content/themes/themename-child/logo-3.png" />
    <?php } ?>

    Or is this possible with Custom CSS in Customizer?

    (Sorry, can’t provide the link to the WP, because not accessible from outside network)

    Or is there an actual plugin that still works with a new WP (I just found stone-old stuff), that I just couldn’t find?

    Thanks in advance!

    • This topic was modified 4 years, 12 months ago by stfngssn.
    • This topic was modified 4 years, 12 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Phil

    (@owendevelopment)

    I would at first try the code you tried in a child theme header.php, in place of the current logo element.

    The conditional statements you add will show the correct logo based on which page is shown.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The images are not set via CSS so this cannot be fixed with CSS. You’ll need to do it in PHP in header.php in the child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress with 3 Logos’ is closed to new replies.