Title: using a shared header
Last modified: August 20, 2016

---

# using a shared header

 *  [nessler](https://wordpress.org/support/users/nessler/)
 * (@nessler)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/using-a-shared-header/)
 * I already have an existing site and built two blogs (seperate installations),
   which got integrated as news and diary sections.
 * I have started using an external header, using php, transforming the entire site
   from html to php, so that when I change something in the header I have to do 
   it in just one file instead of a hundred.
    This is the centralized php header
   file: [http://www.fortherestless.com/header-external.php](http://www.fortherestless.com/header-external.php)
 * Now, the two blogs I have also use their own header from the theme, and when 
   I try to do use the external header here I run into problems.
 * The page is called news.php, and the entire header section I replaced with this:
   <?php include(‘[http://www.fortherestless.com/header-external.php&#8217](http://www.fortherestless.com/header-external.php&#8217););?
   >
 * On the news.php page, the blog is then called with the short and sweet code
    /*
   Short and sweet */ define(‘WP_USE_THEMES’, true); require(‘c:\\domains\\fortherestless.
   com\\wwwroot\\forms\\newz\\wp-blog-header.php’); ?>
 * When I view the page the collapse expand scripts stops working, and I saw that
   the header of the theme is also loaded, thus placing two headers files into the
   php, so I guess this is why it is not working.
 * I tried integrating the two, but keep on failing miserably.
    Anybody know how
   to solve this simply ?
 * Here’s the code in a text file for the news.php file.
    Clearly visible is the
   second header function… located here on my server: [http://www.fortherestless.com/forms/newz/wp-content/themes/wpthemegen/header.php](http://www.fortherestless.com/forms/newz/wp-content/themes/wpthemegen/header.php)
 * thanks in advance for tips…

The topic ‘using a shared header’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [nessler](https://wordpress.org/support/users/nessler/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/using-a-shared-header/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
