You can intercept the template WordPress will be using with the template_include
filter. Like this:
add_filter ('template_include','wpse303537_plugin_template', 10,1);
function wpse303537_plugin_template ($template) {
if (is_front_page)
$template = plugin_dir_path( __FILE__ ) . '/my-template.php';
return $template;
}
Alternatively, you can include an almost empty template for the landing page in your theme and fill it through the action hook in get_header
.
Related Posts:
- Looking for WordPress System Diagrams
- How can I load a page template from a plugin?
- Overwrite theme file from plugin
- How to control output of custom post type without modifying theme?
- When is it appropriate to put functions on page template vs. functions.php?
- Filter to change the content of 404 page
- How to properly use a hook to create template for custom product type in a plugin such as Woocommerce? [closed]
- How to check active theme is parent or child wordpress
- Inserting JS snippet in the footer if there is no wp_footer?
- WordPress removing data attributes for scheduled post
- Is there a way to loop through a shortcode datasource to create a table?
- Execute Hook on the footer or header after activating a plugin
- creating custom archive template within plugin for custom post type using archive_template filter
- Enqueue scripts in footer
- Where to call wp_enqueue_script in a plugin with custom template?
- Can Page Templates be Applied to Archive and Post Templates?
- ORDER BY wp_post custom column name in wp_query
- Create a free scripts and styles template within a plugin
- How can I turn a custom wordpress page into a product page?
- Plugin templates vs Parent Theme
- How to make “upgrade safe” theme for a plugin?
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- making a plugin that moves other plugins wp_head actions to wp_footer
- How to create templates for a custom module to show on the front end within my theme?
- Why aren’t some plugin styles loading when I load a template?
- Plugin custom post template; without overriding all posts
- Best way to distribute templates and code accross multiple wordpress sites?
- Load php file with jquery in single.php
- Overriding the template files using a plugin for all themes
- How do I use a plugin to swap out the template file for a custom post type?
- Javascript not being loaded only in custom taxonomy template
- How to enqueue an external Javascript file to Frontpage footer
- Use a page as a template for a custom post type
- Page template compatibility with different themes
- How to set custom homepage via a plugin
- Template file structure , wordpress hook for altering the template
- Displaying External Data – Not Posts
- Making plugin output customizable
- Use different archive template for plugin
- How to display custom taxonomy and terms using/creating plugin template
- How to check during “pre_get_posts” if WP performing default query for specific custom template?
- WP Job Manager – Show recent jobs as cards
- Help interpreting @wordpress/create-block-tutorial-template usage error
- Is there any plugin development framework
- Is wp-content/install.php a Drop-in?
- Handling results from data hooked into admin_post
- get_template_part from plugin
- Edit or Remove Plugin .htaccess Using The Admin Panel
- How to create collections that are edited in admin?
- Get list of available wordpress actions
- How can i list current author’s categories?
- Rest Api How to get results of child categories with one api call
- How to store accumulate multiple option values in a single array using Options_API
- Add Post and Comments menu no longer visible
- can I prevent WP users (even admin) from deleting custom categories?
- What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?
- How do I obtain a list of categories assigned to the current post?
- Modify hard-coded conditionals for roles to custom roles
- Does wp_login only trigger before an user signs in into the admin panel?
- How to access noticeOperations from withNotices
- Thickbox doesn’t respect dimensions when used in admin [duplicate]
- wp_nonce_field displaying twice
- jQuery in WordPress Plugin
- Why is my plugin version 0.1?
- WP Plugin Running before jQuery
- How to include jQuery into my plugin so I can use it on plugin page?
- Prevent WordPress automatically processing certain URL queries
- Apply function to update_option Variable
- WordPress multisite,use same cookies across all website?
- How to check via conditional tags for a single plugin page?
- How to save post meta as an array in Gutenberg?
- Duplicate shipping method logic to another shipping method [closed]
- REST Endpoint API 404
- How to disable a jQuery plugin on WordPress plugin page
- Add a custom menu item that supports wildcards
- jQuery UI tab does not work in the plugin page
- Using HTML links within translatable string
- Adding an external stylesheet to a plugin
- How to use attributes in competent of Gutenberg
- How to write a custom shortcode name book?
- get the term_id of current taxonomy page
- Add language localisation to javascript alert?
- redirect_to how to make it simply work with get parameter or similar?
- cancel place order proccess
- How I can give access to my custom plugin for editor roles user?
- Testing Plugins for Multisite
- WP: adding Javascript to specific woo commerce pages
- Calling dynamic_sidebar in plugin gives error
- How to add chunk of php, html, and sql code to variable an append to $content
- edit-tags.php in plugin admin menu hides when is the active page
- Best way to handle a form post in plugin
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Fixing plugin for wpdb::prepare
- Remove text from confirmation message
- Can I use an array to create multiple tables?
- Anyway to prevent admin from seeing other admin’s product?
- Build a dynamic block using the default attributes
- Bulk post approval and publishing doesn’t work
- Show Admin Menu