• Resolved uta

    (@uta)


    I’m using the latest version of the Twenty-Twelve theme. Everything is installed and working on my MAMP development server. I would like all my static pages (home, about, services, contact) to have one logo and the “blog page” and all it’s posts to have their own separate logo.

    With the “Theme Logo” plugin I did insert the logo but as designed it is the same logo for all pages and posts. What is the best way to address this design request? If I remove the plugin should I use “conditionals” in the header.php and if so what would that look like or use a separate blog template and if so what would that look like.
    Thanks in advance for your help!

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="https://marypetrie.dev/wp-content/uploads/2014/05/top-header2.png" />';
    }
    else { echo '<img src="https://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.