Title: ABSPATH to header php
Last modified: August 18, 2016

---

# ABSPATH to header php

 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/)
 * 1.3 Alpha 4 here. Am I right in saying that the new index file checks to see 
   if there is a file called header php _ in the WP root directory _ and else it
   loads the default wp-header OR does it check in the theme directory for the alternative
   header php file ? ie its ABSPATH to what ?

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/abspath-to-header-php/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/abspath-to-header-php/page/2/?output_format=md)

 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-100984)
 * Yes but in the theme dir I can’t get it to pick up header php. Am I doing something
   wrong? . And thank G you are here beel 🙂
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-100994)
 * Well mine does not (not quite) 🙂
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101021)
 * In my install (latest nightly) the theme index takes footer php from the root
   directory – not the theme directory. It rather wrecks the theming switching idea
   at least temporarily. I do not know if its a file path typo or something or indeed
   how it is meant to work.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101028)
 * So: Only one theme with alternative sub files can be installed at once. Have 
   I got it right?
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101031)
 * Well that is fine and makes perfect sense. But I can not get my theme index file
   to pick up my theme footer file.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101033)
 * Hmm, make sure that index.php, wp-header, wp-footer, etc. in the root directory
   is the default install from WP. Also make sure footer.php, etc. is not in the
   root directory (they should be in your theme directory) and that you have include(
   footer.php), etc. in your index.php (the one in the theme directory).
    I think
   that should cover all the bases. Maybe not?
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101035)
 * When wp-blog-header runs it comes across this:
    else if (is_home() && file_exists(“
   $wp_template_dir/index.php”)) { $wp_did_template_redirect = true; include(“$wp_template_dir/
   index.php”); exit; thereby running your selected theme index file which has the
   include for your header sidebar and footer.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101036)
 * Thanks I am trying all that now.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101048)
 * I have that but my index file will not pick up either footer or wp-footer for
   example from its own theme dir.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101052)
 * Fine. Fixed it. You need the full file path. No problem.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101060)
 * huh? full path? Hmmm, something else must be amiss as I don’t have the fullpath.
   I’ll have to explore further once I get back to my computer. Glad you got it,
   though.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101062)
 * From /wp-content onwards.
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101064)
 * Includes are relative to the theme directory. In your theme’s index.php, do this:
   `
   <?php include('footer.php'); ?>` footer.php should live in the theme directory
   next to index.php. That’s all you need. Don’t bother with wp-footer.php. That’s
   for the default index, which you’re not using since you’re using a theme.
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101067)
 * It was the ABSPATH malarkey which confused me. Until I put in a long path it 
   just would not run. I didnt know if it was a glitch or whether it should be like
   that ?
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/abspath-to-header-php/#post-101069)
 * rboren: I’ll have to take a look when I get back to my computer but I have the
   relative path to footer.php (and it works), however, if there is a footer.php
   in the root directory that gets included instead.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/abspath-to-header-php/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/abspath-to-header-php/page/2/?output_format=md)

The topic ‘ABSPATH to header php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 20 replies
 * 4 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/abspath-to-header-php/page/2/#post-101379)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
