[resolved] Two Custom HEADER.PHP (4 posts)

  1. takuhii
    Posted 7 years ago #

    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.

  2. takuhii
    Posted 7 years ago #

    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 ;)

  3. gmisen
    Posted 6 years ago #

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

  4. t31os
    Posted 6 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic