I’m using the Roots theme which with custom css.
I’m using the page “Home” as the front page the page “Blog” as the blog page (in WP reading settings)
I’m trying to set the front page “Home” to use the template “full-width”, but instead WordPress ignores this and uses the “front page” template.
This only happens on the front page, I can set any other page to use the “full width” template.
Any ideas as to why this is happening and how I can resolve this?
I can post some more information if this is helpful. Just let me know what.
Thanks.
This is by design – check out
wp-includes/template-loader.php
to see why.Delete
front-page.php
and it will fallback to the page template.That is by design. Refer to the Template Hierarchy. The site front page is a special case, and has the following rules:
That says, basically:
front-page.php
template file exists, use ithome.php
index.php
So, if your Theme includes
front-page.php
, then thefront-page.php
template file will always be used on your site front page, no matter what custom page template you assign to the page set to display the front page.