WordPress.org

Ready to get started?Download WordPress

Forums

home.php not working (3 posts)

  1. lydialysol
    Member
    Posted 3 years ago #

    I'm soo frustrated right now. I have done several Word Press sites and never had this issue before.

    I cannot get my home page to utilize my home.php page. It is utilizing the index.php file.

    I have it set up in Setting to utilize a static page titled Home.

    I have a template page called home.php.

    I have spent three days on this and am pulling my hair out.

  2. Root
    Member
    Posted 3 years ago #

    no need to set up the static page.
    undo that
    the template hierarchy directs urls for the root to home.php if it exists.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Rename home.php to front-page.php.

    the template hierarchy directs urls for the root to home.php if it exists.

    That's relying on server-side settings - not WP. front-page.php is the correct template name for the front page template in WP 3x. Using home.php as a template name often creates problems

Topic Closed

This topic has been closed to new replies.

About this Topic