Support » Themes and Templates » Theme won't load new header?

  • Resolved D C


    I’ve created a new theme (based off of Graphene), added a custom page template for the home page called homepageheader.php and uploaded it to the /themes folder. As you can see in the code below, I have the new page calling the new header file, with a new div for the navigation area. The rest of the site has a div in the main header.php file called nav. In the home page I changed that div to be called homenav which I’ll style with the right elements.

    After all of this, it WILL NOT call the right header (I’m still seeing the wrong div elements on the home page even though the backside says the Home page is calling the new home page template from the dropdown menu). What am I doing wrong?

    It looks like this:

    New Home Page template file:

    Template Name: New Home Page
    get_header('homepageheader'); ?>
        /* Run the loop to output the posts.
         * If you want to overload this in a child theme then include a file
         * called loop-index.php and that will be used instead.
         get_template_part('loop', 'index');
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • paulwpxp


    Font hero


    will load this file


    when that file doesn’t exist, it’ll load the default which is header.php

    D C


    I agree. I just found the answer elsewhere too. Which is really weird. Anyways, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme won't load new header?’ is closed to new replies.