Title: Multiple Headers
Last modified: February 17, 2021

---

# Multiple Headers

 *  [viewmark](https://wordpress.org/support/users/viewmark/)
 * (@viewmark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/)
 * I’m trying to create a separate page that includes a different header than the
   main one on my site. I have created a separate header.php file and added new 
   code to the page.php file to call the alternate header.php page. Everything seems
   to be in order but I believe my site may call the header in a different fashion.
   I’m not an experienced coder but have a general understanding of how WordPress
   works. My theme is somewhat unique as it was developed specifically for organizations
   such as mine. The theme creators are not accessible. Any insight or suggested
   steps are appreciated. Please let me know if I can provide additional information
   to help you resolve this problem. Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-headers-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14064345)
 * which page should have the alternative header?
    what is the file name of the 
   alternative header file? what call are you using to get this alternative header
   in page.php?
 * [https://developer.wordpress.org/reference/functions/get_header/](https://developer.wordpress.org/reference/functions/get_header/)
 *  Thread Starter [viewmark](https://wordpress.org/support/users/viewmark/)
 * (@viewmark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14066233)
 * Thank you for replying.
 * **which page should have the alternative header?**
 * [https://empoweringcolorado.org/big-pivots/](https://empoweringcolorado.org/big-pivots/)
 * **what is the file name of the alternative header file?**
 * header-big-pivots.php (which includes all of the code in the main header.php 
   file.
 * **what call are you using to get this alternative header in page.php?**
 * <?php if(is_page(‘big-pivots’)) { get_header(‘big-pivots’); } else { get_header();}
   wp_head(); ?–>
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14066263)
 * the code looks ok;
    unfortunately, the page ‘big-pivots’ does not show;
 * error:
 * > This page isn’t working
   >  empoweringcolorado.org is currently unable to handle
   > this request. HTTP ERROR 500
 *  Thread Starter [viewmark](https://wordpress.org/support/users/viewmark/)
 * (@viewmark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14066315)
 * I’ve run in to a real mess in the course of trying to fix this problem. I’ve 
   undoubtedly made a bad problem worse by trying to edit some of the .php files
   associated with my theme. I’ve tried to return things back to normal but so far
   stuff isn’t displaying correctly. It seems if you access a page from my site (
   as opposed to going to a page directly via link) it displays. But if I’m logged
   in as an administrator or I access a page directly I’m having problems. I’ve 
   only edited page.php and added a new header.php file. I’m not sure what I could
   have screwed up. I downloaded the plugin Query Monitor and receive this message
   when I try to view a page as an administrator:
    =========== Fatal error: Uncaught
   Error: syntax error, unexpected ‘locate_template’ (T_STRING) in /home/viewwebinfo/
   public_html/empoweringcoorg/wp-content/themes/Largo-master/page.php on line 1
 * Call stack:
 * require_once()
    wp-blog-header.php:19 require() index.php:17 ================
   ===
 * Here’s a copy of my page.php file:
    ====== <?php
 * /**
 *  * The Template for displaying all pages.
 *  */
 * locate_template( ‘single.php’, true );
 * ==============
    I appreciate any help you’re willing to offer.
 *  Thread Starter [viewmark](https://wordpress.org/support/users/viewmark/)
 * (@viewmark)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14066386)
 * Problem has been resolved. Fixed page.php file and pages now display properly.
   But I’m back where I started — trying to build a page with a different header.
   Thanks for your help.

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

The topic ‘Multiple Headers’ is closed to new replies.

## Tags

 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 5 replies
 * 2 participants
 * Last reply from: [viewmark](https://wordpress.org/support/users/viewmark/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-headers-8/#post-14066386)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
