Maybe template_include
filter would get the job done for you. Something along these lines,
function prefix_another_front_page_template( $template ) {
if ( is_front_page() ) {
$another_front_page_template="something.php"; // adjust as needed
$new_template = locate_template( array( $another_front_page_template ) );
if ( !empty( $new_template ) ) {
return $new_template;
}
}
return $template;
}
add_filter( 'template_include', 'prefix_another_front_page_template', 99 );
Related Posts:
- How to move page templates to custom folder?
- Is it possible to manipulate the list of page templates?
- How does WordPress decide what template to use as frontpage
- Returning Variables back into a template
- Where can I access my custom page template?
- Single Page theme [closed]
- Move default page templates to sub directory
- Load sidebar template just once to prevent multiple animations
- Need help with adding templates (archives and sitemap) to WordPress child theme
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- Templates dropdown not appearing using _s theme (underscores)
- Confused by the behaviour of “front page” / “home” templates
- Template for front page (latest posts)
- How to show children pages as array
- Create a variable with string, array or multiple values
- What is the advantage of using home.php over index.php for the front page
- What is the point of using the front-page.php template? [closed]
- What’s the difference between home.php and index.php?
- How to move page template files like page-{slug}.php to a sub-directory?
- Is it possible to stop selected plugins from loading on certain template pages?
- Ways to have multiple front-page.php templates that can be swapped out?
- Different wordpress 404 template for different post type [duplicate]
- Adding items to page template dropdown on Page Edit Screen
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- Adding Content Areas to Custom Page Template
- Add a preview to a WordPress Control Panel
- Add a #hash to the links in my custom menu
- Trouble with conditional tags
- How to load different CSS in different Header?
- Set front page as static page [closed]
- Page attribute template dropdown not displayed even the syntax is correct
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Do I really need the div class entry?
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Switching between custom templates in a post type of the admin menu
- New template, where to place CSS?
- WordPress Theme Development: How to redirect templates the right way?
- Implement content-nosidebar.php / content-leftsidebar.php
- Set a static front-page as a landing page programmatically
- How to enable template page only for a post id page
- create-guten-block in wordpress theme?
- Highest number of WordPress Custom Page Templates?
- Displaying recent post excerpts on static front page
- Why is the Page Template dropdown menu using the wrong file name?
- How to add “Template” option in page attributes panel?
- Single page site with history.js
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- Template selection area is not visible on page editor sidebar in wordpress twentty sixteen default theme
- Custom page template with custom fields
- How to Find the Page the Front Page is Using?
- How to use get_template part in the plugin?
- Where to place template files?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- How to set wp_options in functions.php for removeing the Default Front Page
- posts not showing on index.php
- Replace single_template filter with what for default posts?
- How to create first post, fifth post full width, rest in three columns and so on
- Template for landing pages
- How to seperate static phrases from template files in custom theme?
- Issue On Displaying Pages with Post Name Permalink
- Broken theme, template is missing
- How to add menù section to my WordPress template?
- Theme Development -> Specific Homepage
- Post and page content not displaying in search results
- Why still output /wp-content/themes/twentynineteen?
- What is the need for the static front page [closed]
- Where to put custom page templates in theme?
- Hard Coding Components on a Client Specific Websites
- Load different single.php templates according to post layout selection
- How to add pages in wordpress using codes?
- Injecting pre-defined text from custom page template to editor
- I need to develop a one-page design
- add jquery file if a certain page is included
- Is it possible to have a Theme with built-in physical page files?
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Trouble in creating a custom template on twentyeleven theme
- Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?
- Custom search template is showing 404 when adding query string
- How to Modify WP_Includes/blocks/latest_posts.php
- A Reviews Page is Showing root Index.php instead of Template-Page
- How to implement pagination in category.php template
- How to show metabox on page if it is using a template
- Using wp_add_inline_style Inside a Template File
- which template should I use for single category post?
- Should I use template files or just use conditional tags in index.php?
- Group several custom global page templates in sub-folder
- Display content on Single page
- Using require_once for parent-directory not working but is working in sub-directories
- Can you create a custom page with content in the center already defined?
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- 3 x 3 grid of posts on the home page
- Problem with multiple menus in theme
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- How can i display a 4 diferent themplate for the archive page
- DIV containing iframe disappears below break point of 992 in Oxygen Builder
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- What is the point of using archive.php instead of index.php?
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?