how to have page call in specific header??? (4 posts)

  1. mixmastermichael
    Posted 4 years ago #

    So, I have a slider that needs to go on the home page of my site. I have the other pages of the site already set up and they call the header.php fine.

    I just need the home page template to call in the "headerwithslider.php"

    So, I looked at this file and followed instructions.

    in it, they say that you can call a new header by just putting the name of the new header fiile in the paramatters like:


    but it still doesn't work! just pulls in the regular header file.

    Anyone know what I'm doing wrong?

  2. keesiemeijer
    Posted 4 years ago #

    Name your "headerwithslider.php to "header-withslider.php" and call it like so

  3. mixmastermichael
    Posted 4 years ago #

    Hell ya! Thanks for the quick response! You've made my day.

    It's a little strange how they don't explain that at all in the documentation, but it works.

    Cheers mate.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    You might want to check http://codex.wordpress.org/Function_Reference/get_header again. It is all explained on that page.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.