• Hi,

    I’m using a customized child theme and parent theme setup by colleagues. I want to add the slider to just the home page and have installed the soliloquy plugin. I’m able to call the slider on all pages by editing the header file in the child theme using the soliloquy template tag info provided:

    if ( function_exists( ‘soliloquy’ ) ) { soliloquy( ‘###’ ); }

    However, this changes the header for all pages on the site. I’ve created a new file in the child theme folder called header-slider.php, and I’ve figured out how to call that file by editing the header.php file in the parent theme, but this also changes all the sites pages. I understand why it does, what I want to do is find the right code and location to put it that calls the header-slider.php file for the home page and the header-image.php file (both in the child theme folder) for the rest of the site.

    The section of the header.php file that calls the child theme header looks like:

    <?php get_template_part( ‘header’, ‘image’ ); ?>

    I’m a novice with php, at best, and have searched for hours and found many things, but none of them work. Any help on how to code the header file in the parent theme to call a different child theme header just for the home page would be much appreciated.

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘different header for home page/ child theme’ is closed to new replies.