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?
- is_front_page() malfunction?
- Loading partial templates with AJAX/PJAX
- Different template for subcategories
- Custom Post Type with Nested Taxonomy and Template Files
- Store Page Template Files in a Subfolder
- Set front page as static page [closed]
- WooCommerce Template overriding not working with woocommerce.php
- Load template file without a post type
- WordPress Template Hierarchy
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Where to put my global functions?
- Reading Settings -> Front Page displays “Static Page” being reset
- How to display thumbnail and excerpt of a page on homepage?
- Templating of a specific post ID
- WordPress Theme Development: How to redirect templates the right way?
- Can we allow users to choose front page from theme options?
- Template Hierarchy tag-{slug}.php directory
- Create a front page template and separate page for posts?
- Display Categories, Sub-categories, and Sub-sub-categories on separate pages
- How to make use of WP templates within a nested site structure?
- redirect automatic page that serves custom posttype content
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- CPT Template Not Showing – Getting 404
- Categories overview that links to page displaying posts
- rewrite taxonomy-{taxonomy}-{term}.php terms
- How to get the post content from a category on my homepage
- posts not showing on index.php
- Restrict query to last day with posts
- is_front_page and is_home are not working in page.php
- How do I put my frontpage featured image in a page template for home.php?
- Can I assign a Folder for Post Formats, without it affecting WordPress’ fallback/hierarchical system?
- Home page Pagination – Other pages do not redirect to home page template
- WordPress Page doesn’t load the template selected
- Organize template parts and page templates in folders in regards of template hierarchy
- Archive page of taxonomy returns a 404 error
- Use alternative front page if cookie is set
- Media item permalink goes to source file instead of attachment.php
- Templating advice sub posts of a CTP
- Paginated Post List on Front Page
- Different taxonomy.php for different custom post types
- How to put articles under a /blog directory?
- how to change single post link
- Static front page and orderby
- Page Templates Used in Custom Post Type
- 3 x 3 grid of posts on the home page
- Set static page as default front page on newly created sites in multisite
- Using page template as Static Front Page
- Stop Authors from submitting spam post
- What is the advantage of using home.php over index.php for the front page
- How to access the so called “Posts page”
- Archive for custom fields?
- Template hierarchy html with taxonomy in 6.2