• wpress2010

    (@wpress2010)


    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)
  • stephencottontail

    (@stephencottontail)

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

    Thread Starter wpress2010

    (@wpress2010)

    Sure. It’s posted here:

    http://pastebin.com/rwfFyJbr

    stephencottontail

    (@stephencottontail)

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

    Thread Starter wpress2010

    (@wpress2010)

    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…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Twentyeleven child theme and header.php’ is closed to new replies.