WordPress.org

Support

Support » Themes and Templates » [Resolved] is it possible to have multiple header.php files for diff templates?

[Resolved] is it possible to have multiple header.php files for diff templates?

  • i made a new header.php file for another template that i have on my site, but i have no idea how to call it.

    right now i have:

    <?php get_header('headerpage.php'); ?>

    at the top of my custom template, but it keeps opening the original ‘header.php’ file. any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • In these multiple header.php files, what do you want different from one another?

    Your supposed to name it header-{yourname}.php
    And it is <?php get_header(‘yourname’); ?> No .php hypen etc.

    @andrew: i made a header template that has a slide show underneath the navigation. i guess i could’ve put it in to the page template, but i just made it in the header section instead.

    @potentweb: thank you !!!!!!!1 at first it wasn’t working, but then i took the steps again and then it worked!!!! legit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    No problem! Good luck.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] is it possible to have multiple header.php files for diff templates?’ is closed to new replies.
Skip to toolbar