WordPress ignoring specified template for front page. Why?

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)

Read More

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.

Related posts

Leave a Reply

2 comments

  1. That is by design. Refer to the Template Hierarchy. The site front page is a special case, and has the following rules:

    1. front-page.php – Used for both Your latest posts or A static page as set in the Front page displays section of Settings -> Reading
    2. Page display rules – When Front page is set in the Front page displays section of Settings -> Reading
    3. Home Page display rules – When Posts page is set in the Front page displays section of Settings -> Reading

    That says, basically:

    1. If the front-page.php template file exists, use it
    2. If not, and the front page is set to display a static page, then use the static page rules
    3. If not, and the front page is set to display the blog posts index, then use home.php
    4. If not, then use index.php

    So, if your Theme includes front-page.php, then the front-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.