Title: IE7 &#8211; Header w/ php include error
Last modified: August 19, 2016

---

# IE7 – Header w/ php include error

 *  [mackeydesigns](https://wordpress.org/support/users/mackeydesigns/)
 * (@mackeydesigns)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/ie7-header-w-php-include-error/)
 * So, my blog runs multiple headers pending which section is pulled.
 * So I made a few different versions of my header.php, which I renamed according
   to the fit the page section.
 * After reviewing some posts on the support forum, I was able to figure out how
   to get my custom header pages to load per the page that was loaded.
 * That was by sticking this code into the header of the page.php file
 *     ```
       </*
       Template Name: about
       */
       ?>
       <?php include(TEMPLATEPATH . '/header_about.php'); ?>
       ```
   
 * and removing
    `<?php get_header(); ?>`
 * This works perfect in FireFox, but the spacing on my pages goes to hell in IE7.
 * Using IE7, here is an example of working page
    [http://www.mackeydesigns.com/blog/](http://www.mackeydesigns.com/blog/)
   that uses the `<?php get_header(); ?>` in the page.php file.
 * Now if you navigate to, say the portfolio tab in IE7
    [http://www.mackeydesigns.com/blog/portfolio/](http://www.mackeydesigns.com/blog/portfolio/)
   the spacing gets really whacked out, and I suspect it’s the code:
 *     ```
       </*
       Template Name: about
       */
       ?>
       <?php include(TEMPLATEPATH . '/header_portfolio.php'); ?>
       ```
   
 * Any ideas on how to fix this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [mackeydesigns](https://wordpress.org/support/users/mackeydesigns/)
 * (@mackeydesigns)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/ie7-header-w-php-include-error/#post-700677)
 * bump.

Viewing 1 replies (of 1 total)

The topic ‘IE7 – Header w/ php include error’ is closed to new replies.

## Tags

 * [Firefox](https://wordpress.org/support/topic-tag/firefox/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [php include](https://wordpress.org/support/topic-tag/php-include/)
 * [spacing](https://wordpress.org/support/topic-tag/spacing/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mackeydesigns](https://wordpress.org/support/users/mackeydesigns/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/ie7-header-w-php-include-error/#post-700677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
