Title: using header elsewhere
Last modified: August 18, 2016

---

# using header elsewhere

 *  [twopeak](https://wordpress.org/support/users/twopeak/)
 * (@twopeak)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/)
 * I’d like to use the header of wordpress in some different pages, like a self-
   made picture gallery and phpbb and some statical pages.
 * Is this possible?
    I have a header that has links horizontally on top, so if 
   I could just get the header with the links, I could integrate the whole site 
   as if it were one.
 * I tried searching for “header” and some other keywords, but I can’t seem to find
   it.

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483235)
 * why not just “view source” in a browser, and copy that output to the other files?
   Thats certainly what I would do.
 *  Thread Starter [twopeak](https://wordpress.org/support/users/twopeak/)
 * (@twopeak)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483241)
 * no, because if I add a static page in wordpress, it won’t be updated in the other
   places…
    the most important thing is having the links to other pages.
 * I was hoping to for example add in wordpress an external page to my pictures 
   and then when I see my forum for example, this links gets dynamically added…
 * Maybe I should have gotten a cms, but that’s too complicated for the people who
   use the site every day.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483249)
 * well, ok then.
 * to incude any part of wordpress in other **PHP** files, you need to do this:
 * `<?php
    require('./path-to-your-blog/wp-blog-header.php'); ?>
 * after youve done that.. IF header.php only contains the stuff you want to use..
   its merely a matter of doing this:
 * `get_header();`
 * there are more than a few threads on here that explain what you are trying to
   do.
 * [http://wordpress.org/search/include+header?forums=1](http://wordpress.org/search/include+header?forums=1)
 *  Thread Starter [twopeak](https://wordpress.org/support/users/twopeak/)
 * (@twopeak)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483301)
 * whooami, I’m realising now I should have searched better.
    Though this solution
   works great for pages already created, it doesn’t work for phpBB So I started
   searching for easy solutions, but I can’t seem to find them on the forum.
 * I’ve started fixing problems, like double functions by using the “function_exists()”
   function of php, but that doesn’t solve everything.
 * Basically the problem is that either I include the wordpress information before
   the phpbb information, meaning that every output started by wordpress, will give
   the “output already started” when phpbb tries to set headers (like cookies)
 * Or I do phpbb first, but then I seem to be making calls to wordpress functions
   in a wrong order (so some classes are being used without being defined)
 * It all seems very complicated :-p
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483320)
 * and since phphbb will have nothing to do with wordpress (static pages, etc..)
   I dont see why your not wanting to do it the way I already suggested. via the
   source method

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/using-header-elsewhere/#post-483320)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
