WordPress.org

Support

Support » Themes and Templates » [Resolved] Two Custom HEADER.PHP

[Resolved] Two Custom HEADER.PHP

  • How can I specify TWO seperate HEADER.PHP files one for one section of my site, and one for another section of my site…

    Any help would be GREATLY appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • no worries, fixed it myself by duplicating HEADER.PHP, renaming it to something more relevant and using;

    <?php include(“abc.php”); ?>

    instead of;
    <?php get_header; ?>

    Bit clumsy, but does the job 😉

    why do you say its clumsy? I’m using this method as well, have you found a more..*ahem* elegant, way of accomplishing this?

    get_header is nothing more then a fancy function to basically do the same…

    Of course the get_header function does more then include a file, but at a basic level it is still an include….

    Nothing clumsy about using include, though you could use require, or require_once if WordPress allows this (can’t see why not)…..

    That way noone can call the file in question without a successful inclusion of the ‘required’ file…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Two Custom HEADER.PHP’ is closed to new replies.
Skip to toolbar