• Hi there ~

    I have created a custom page template called customtemplate.php by copying the index.php file.

    I wanted a different header to go with this template so I created header-customtemplate.php.

    Then I put this code in my customtemplate.php file:

    <?php /*
           Template Name: Custom Template
           */
    	   ?>
    <?php get_header('customtemplate'); ?>

    However when I go to the page it’s loading the header.php file instead of header-customtemplate.php.

    Suggestions on how to get it to pull the right header file?

    This is the url:
    http://chickrevolution.com/justaddcape/

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you assign the template to the page? Just want to make sure you are using the custom template

    Thread Starter chickspirit

    (@chickspirit)

    Hey Rev. Voodoo ~

    Yes I assigned the template to the page. I always appreciate the simple suggestions…just in case. Wish that was the solution.

    I’ve created custom templates and headers many times before but I’m working with a new wordpress 3.0 theme and wondering if that has something to do with it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Page Template not grabbing Custom Header’ is closed to new replies.