• 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 5 replies - 16 through 20 (of 20 total)
  • Make sure your footer.php doesn’t have any of that include_once(ABSPATH . '/footer.php') stuff in it. If you copied from wp-footer.php, you need to remove that stuff.
    It shouldn’t be necessary to use ABSPATH anywhere in your theme. Even the require of wp-blog-header.php can be removed. Everything can and should be done relative to the theme directory.

    Thread Starter Root

    (@root)

    Thanks rboren. That is the key. Removing that bit from wp-footer and presumably the similar files. Thanks. We are rocking again now. Thanks to Beel too today. Nice work.

    I bet that is it for me, too.

    Hmm, no ABSPATH anywhere in my theme directory – must be something else and thus the hunt continues ??

    My root is
    \www\phproot\
    that contain the index.php,mainfile.php,header.php…
    I want to be able to have both the header and footer to another page that place in
    \www\phproot\MAIL\(my another page.php)
    In this case, what should I do?

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘ABSPATH to header php’ is closed to new replies.