user7961479
user7961479

Reputation:

Confusion with front-page.php in wordpress

I am slightly confused with front-page.php. I created a page "Home" from the backend of the wordpress and selected a custom template, let's say Food. I also have front-page.php. Now from settings page, I selected Home Page as my front page. But still I visit the website, it shows content from front-page.php.

When I already selected Home page as my front page, then it should show content from food Template not front-page.php. I am confused over this.

Upvotes: 2

Views: 103

Answers (1)

user8230352
user8230352

Reputation: 1793

Try renaming front-page.php template, so the WordPress will not find it.

Then it should display the "Home" page with the custom template.

More information can be found on Codex site, which states:

On the site front page, WordPress will always use the front-page.php template file, if it exists. If front-page.php does not exist, WordPress will determine which template file to use....

Upvotes: 1

Related Questions