The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Getting a different header.php (4 posts)

  1. stefanluk
    Posted 3 years ago #


    I'm trying to get a different header on my homepage. So far, I've made a new header-home.php

    On my homepage.php, which displays the homepage of my website, I changed the get_header() to get_header('home') but for some reason it doesnt get me the header-home.php

    Does anyone know what I might have done wrong here?


  2. Michael
    Forum Moderator
    Posted 3 years ago #


    is homepage.php a custom page template for the static front page?

  3. tomontoast
    Posted 3 years ago #

    This should work butI think you should rename homepage.php to home.php see http://codex.wordpress.org/Template_Hierarchy

  4. stefanluk
    Posted 3 years ago #

    Homepage.php was indeed the page template for the static front page so renaming it to home.php fixed the problem.

    Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic