Twentyeleven child theme and header.php (5 posts)

  1. wpress2010
    Posted 2 years ago #

    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!

  2. stephencottontail
    Posted 2 years ago #

    Can you post your child theme's header.php to Pastebin and post the link here?

  3. wpress2010
    Posted 2 years ago #

    Sure. It's posted here:


  4. stephencottontail
    Posted 2 years ago #

    Does the easingsliderlite() function also set the header image?

  5. wpress2010
    Posted 2 years ago #

    It's an image slider that, under this arrangement, appears right above the nav menu. I guess you could call it a header image. but there isn't any kind of control for it to do that.

    WHat I can't figure out is why, if I insert that code in the parent theme's header.php, it works fine, no other header image appears.

    You could insert the slider code anywhere you wanted to...

Topic Closed

This topic has been closed to new replies.

About this Topic