Support » Themes and Templates » Twentyeleven child theme and header.php

  • Made a copy of my header.php file, copied into the twentyeleven-child folder.

    Made some modifications, basically just inserting this code, right after the h2 id=”site-description” code:

    <?php if( is_front_page() ) : ?>
    <?php if ( function_exists( “easingsliderlite” ) ) { easingsliderlite(); } ?>
    <?php endif; ?>

    That’s all. The image slider sure enough shows up, but… a header image pulled from the parent’s themes images/header folder also shows up below it! I double-checked, and the header image in both the parent and child themes is set to to “no image set”. Also, the child theme’s modified header.php messes up the site’s nav menu – it now has margins, whereas without the child theme’s header.php in place, it doesn’t.

    There must be something about a child theme’s header.php file that needs to be edited in order to have it work correctly.

    TIA for your suggestions!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twentyeleven child theme and header.php’ is closed to new replies.