• I have read the Codex on this and cannot get this to work. I have a custom header in the same directory called “header-member.php”.

    I’v tried these following codes

    include (‘header-member.php’);
    require (‘header-member.php’);
    get_header(‘member’);

    I’m not sure why NONE of these are working, the last one should have 100% worked according to https://codex.www.ads-software.com/Function_Reference/get_header

    Can anybody provide any guidance?

Viewing 4 replies - 1 through 4 (of 4 total)
  • get_header(‘member’); is the correct one.

    Where are you calling it?

    Thread Starter phpchick

    (@phpchick)

    I’m calling it from the same file from which the header-member.php file is located.

    The files in the wordpress installation are a copy from another instance, will that make a difference?

    If so, where does one edit the file path from which the get_header function gets the path?

    They should both be in the same directory.

    Thread Starter phpchick

    (@phpchick)

    It was working, the culprit was that I was editing the header file from the original wordpress installation and not the current one that I was trying to modify

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using a header file other than header.php not working’ is closed to new replies.