WordPress.org

Ready to get started?Download WordPress

Forums

Static front page doesn't use home.php (3 posts)

  1. nds
    Member
    Posted 7 years ago #

    home.php doesn't appear to be invoked when using "Front page displays: A static page" feature -- home.php is ignored, and the page is displayed using index.php. If I change the front page setting to "Your latest posts", home.php is invoked, but that's not the content I need on the home page.

    Is there another good way to use a separate template for a static fron page?

  2. nds
    Member
    Posted 7 years ago #

    Answering myself:

    First of all, there seems to be some controversy over whether a static front page should actually call itself the home page:

    http://trac.wordpress.org/ticket/3682

    Leaving that aside, the best way to use a unique template for the home page appears to be to create a separate template for that page (ignoring the fact that it's the home page) as per:

    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates

  3. groovyKimo
    Member
    Posted 7 years ago #

    Hi

    I made a new page template which I use for most of the pages. One of them called 'Wellcome' - if I choose this one as Front-/Homepage, it works fine.

    Maybe it's better to call the homepage not home.php, since this name is a part of the internal pagehierarchy iirc and eventually confuses the theme...

Topic Closed

This topic has been closed to new replies.

About this Topic