You can make use of the frontpage_template
filter to adjust where your template should be loaded from
add_filter( 'frontpage_template', function ( $template )
{
$locate_template = locate_template( 'page-templates/front-page.php' );
if ( !$locate_template )
return $template;
return $locate_template;
});
Related Posts:
- How did WordPress link an empty page at dashboard to an actual php file?
- Programmatically set page_on_front
- How to make my front page display only the most recent sticky post, plus usual widgets?
- How do I set the front page programmatically?
- Custom background for the index page only?
- Can you select a post as the front page or only pages?
- Can’t edit front page of website [closed]
- How to block access to blog-page for users not logged in?
- Pagination not Working on only Front page on latest verson of WordPress
- Create static front-page with 3-5 recent posts
- Do I need an empty page for a different blog page?
- Showing option when page is frontpage
- Is it possible for homepage in Twentyseventeen theme to look like a standard page?
- WordPress site front page fails to load in IE
- Home/front page won’t display content after a form is submitted
- how to create a static front page for my blog in wordpress
- Home link in the homepage of my wordpress does not show my blog posts
- WordPress, how to figure out how to edit front page
- How to set a static html front page
- NON Static-Front Page
- Front Page Settings
- What code controls the animation for the front-page header in TwentySeventeen
- Setting index.php as a static home page without posts?
- Implement a slideshow-like frontpage with text overlays
- Showing “best posts” in front page
- Pull in content from page defined as static front page
- Excluding front_page from is page condition
- Why does my site show the correct front-page when you arrive at the site, but not when you click ‘home’?
- Change Front Page Word Press 4.1
- custom change in front page [closed]
- Remove edit post link from static front page
- WordPress certain directories not connected
- Different front page for logged in and logged out user but the same URL in WordPress
- Homepage not working after setting as frontpage
- Hiding New Posts on Front Page
- change header height on 2017 theme for logged in users
- How to connect front-page.php to page in admin panel?
- Can I have two websites with one front page
- Letting wordpress decide what template and page to use based on condition
- I created a new home page and set it as the home page in the reading section, but I get an error when typing in the home page url
- Categories with post from child categories on front page
- Static front page – going against the grain
- When Front page and Posts page are specified is it possible to just have front-page.php as the home page?
- Custom background for the index page only?
- No posts on front page
- How to display only sticky posts on my automatically generated front page?
- Front page welcome message area
- Static front page as parent of with child pages?
- When to use is_home() vs is_front_page()?
- Template Hierarchy: confused with index.php, front-page.php, home.php
- How to create custom 401, 403 and 500 error pages?
- single-{$post_type}-{slug}.php for custom post types
- Using pre_get_posts on true pages and static front pages
- What is singular.php?
- Custom Post Type Plugin: Where Do I Put The Template?
- How to override WooCommerce template files?
- How can I create a “Read More” link using the_excerpt() on a static front page?
- Custom taxonomy query broken after upgrade to 4.4
- CPT Template Not Showing – Getting 404
- is_front_page() malfunction?
- How to add “Stick this post to the front page” to front end?
- How do I fetch the static front page using the REST API?
- Ways to have multiple front-page.php templates that can be swapped out?
- Create “File-less” Page Template in Functions.php
- Overide get_template_part( ‘partials/post’, ‘sidebar’ ); with a plugin
- is_front_page only works in theme file, and does not work in functions.php
- How to make child categories recognize parent’s template displays
- Template for specific post of custom post type
- What is the correct method for determining ‘is_front_page’ when using filters such as ‘pre_get_posts’ and ‘posts_where’?
- Is it possible to manipulate the list of page templates?
- How to use a specific category archive index as the site front page?
- Loading partial templates with AJAX/PJAX
- Category page doesn’t use category.php, instead it redirects to homepage
- Is there a default template file for child pages / subpages?
- Different template for subcategories
- How to put custom post types on front page
- Multiple Single Post templates
- Taxonomy Templates… by hierarchical level?
- How to prevent the default home rewrite to a static page
- Facebook comments box on front page
- Filter front page posts by category
- How does WordPress decide what template to use as frontpage
- Display Editable Text Above CPT Archive Listings
- Custom query_var causes displaying posts archive on front page
- How do I show sticky posts on a static front page that also contains content?
- Static page homepage not showing the_content
- Different templates for parent and children categories/taxonomies
- Archive page showing nothing – issue with WordPress Hierarchy?
- How to use same theme template for multiple taxonomy terms?
- front-page.php stylesheet
- Unable to load static front page on home url
- How to set a custom post type post as static front page?
- How can I set up a category “overview” page?
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- index.php not loading in main folder of wordpress
- Custom Post Type with Nested Taxonomy and Template Files
- Which template name to use for taxonomies but not their terms?
- Store Page Template Files in a Subfolder
- LOST in WP Template Hireachy
- How to create custom home page via plugin?