Reply 17464 to: Different header logo for different pages

Avatar: Olga Barlow
Olga Barlow
Support staff
September 29, 2014 at 13:19

Hello,

First of all what is this echo "('<img src=\"<?php bloginfo('template_url'); ?>/images/logo_1.png\" >')"; ?
You need to add

<div class="header-logo">
<?php if( is_page ('Home')){
      echo etheme_logo(); }
      elseif ( is_page('About')) {
      echo "<img src='http://www.claudiofichera.it/wp-content/uploads/2012/06/CF_Title.png'>";
      } ?>
</div>

If you want to change main logo, then you need to add it in header-structure file (royal/headers), not in header.php, because if you take a closer look at code in header.php file you’ll see that lines 81-83 display fixed header logo. Also don’t forget to create and use child theme to save your changes and avoid problems with next update.

Regards,
Olga Barlow

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.