0

have a page (home) that runs a template page-home.php that I can access at mydomin.com/home. I am wanting to have this as my static homepage page, so accessible at mydomain.com/ however I cannot seem to get this to work.

I have change the settings in permalinks to allow for a static homepage, and selected the page I would like to use from the dropdown select box. On saving and refreshing my site, I just get a blank a white screen. I assumed that as the suffix of the domain is no longer home that wordpress does not know to use the page-home.php

I have changed the name of the file to be the following,

home.php, index.php, homepage.php, page.php and all I get is white screen for my homepage, am I doing something wrong? in 5 years of using wordpress I have never had a problem setting a homepage.

I have also disabled all plugins and set turn the on one by one to make there was nothing in them breaking the page, but no success.

The page is very simple, it is just a loop display posts from a custom post type.

1
  • 2
    Try front-page.php Commented Jun 10, 2014 at 9:55

1 Answer 1

1

That's because homepage.php isn't recognized by Wordpress.

The correct file to use is front-page.php.

See: Template Hierarchy - Front Page Display

2
  • 1
    I wanted to complement @Frederik Spang his answer with a link from Chip Bennet about front page dealings in WordPress: chipbennett.net/2013/09/14/…
    – cristovaov
    Commented Jun 10, 2014 at 10:15
  • Also an amazing article I had forgotten all about! Thanks! Commented Jun 10, 2014 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.