Viewing 1 replies (of 1 total)
  • Thread Starter uta

    (@uta)

    Okay– since posting my question I made a little progress but need help focusing the conditional to the specific h1 logo area.

    Placing this in my child’s theme header.php I can get the header to change the way I want but I don’t want to use a header image I want to place the image at the top in the h1 title area. How can I adapt this code to target the h1 title area. Thanks!

    <?php if ( is_page(array('home','resources','about','contact','services')) )   { echo '<img
    src="http://marypetrie.dev/wp-content/uploads/2014/05/top-header2.png" />';
    }
    else { echo '<img src="http://marypetrie.dev/wp-content/uploads/2014/05/blog-header.png" />';
    }
    ?>

    OKay– I figured it out and answered my own question. I removed my conditional code from the bottom of the header.php file and placed it between the <h1 class=”site-title”></h1>
    Very happy–

Viewing 1 replies (of 1 total)

The topic ‘How to use 2 different logos?’ is closed to new replies.