This code may help resolve the issue for this particular situation. Put this code in yor theme’s functions.php
.
add_action('template_redirect', 'default_page');
function default_page(){
if(is_home() or is_front_page()){
exit( wp_redirect("http://path/to/your/html/file"));
}
}
Replace http://path/to/your/html/file
to exact url of html file.
I hope this helps.
Related Posts:
- How to *remove* a parent theme page template from a child theme?
- How to Change 404 page title
- How can I create an alternative home page?
- setting a specific home page for logged in users
- page_template toggle between 2 templates + 2 permalinks for same post
- On Install, which code sets the ‘home’ option?
- How do I deque the default stylesheet?
- Woocommerce Product page edit
- For custom templates, is it better to use `template_include` or `type_template`?
- Video to stretch across the entire homepage [closed]
- CSS to remove “comments count” icon from main page [closed]
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- Category selectable homepage
- need help with a user-specific custom page template
- Show Featured Post Only On The Homepage
- Prepopulating a specific page template with HTML/CSS
- custom meta box for page default template
- Make custom page look exactly as homepage
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- List top 5 authors with most posts
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Hide text if not homepage
- Why does my Posts page only show a single post when using Thematic?
- How to create custom search page
- WordPress archive index page
- How to create a custom WordPress front page
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- How To make Custom page of every Category
- Remove Sidebars from page
- How to setup a membership system in WordPress?
- website is not loading home page (moving from one server to another server)
- Product page not found if product data is set Appointment Service
- New to WP: links on static homepage are not working
- Page with some post value id showing page not found
- Why does a custom php code inside a custom template not get executed?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Create page when a new site in multisite network is created?
- Custom stylesheet not loading
- Displaying Child Page’s Information
- Wonderflux Framework Static Homepage
- Custom display for homepage, tag and author pages
- Adding pages to the Admin panel
- Want home page to click through to two different page types
- Setting Custom WordPress “Posts page” AS “Front page”
- Page template with custom html fields inside a content
- Custom Style per Post, How to Display Custom-Styled Single post on Homepage?
- Single page template
- Adding page Title in a custom coded page
- use another theme for just one page
- Why after customizing Home Page, the site is loading six missing blob sources, slowing down all site?
- Unable to edit the 1Homepage
- How to: Easily Move a WordPress Install from Development to Production?
- When to use is_home() vs is_front_page()?
- Is there a flowchart for WordPress loading sequence?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- How to put logs in WordPress
- How to get the Date Format and Time Format settings for use in my template?
- Where are Additional CSS files stored
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- What Is The Use Of map_meta_cap Filter?
- How do you use a CPT as the default home page?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Creative uses of WordPress [closed]
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Update widget form after drag-and-drop (WP save bug)
- Data sanitization: Best Practices with code examples
- How to benchmark a WordPress installation? [closed]
- Should I delete the default themes?
- Moving WP install from local to live, what about wp_posts GUID?
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Running Gutenberg React in Development Mode
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- Users with custom roles not showing in post author select box
- How to use more than 256MB of memory in the admin?
- How do register_sidebar() and get_sidebar() work together?
- How do you get formatted content of a post using the WordPress API?
- Localization: I want the backend: english and frontend in defined language
- Are there any forks of WordPress (and what is different about them)?
- Make Custom Metaboxes Collapse by Default
- WordPress Paginate $wpdb->get_results
- Custom maintenance page
- Add button to TinyMCE bar without creating a plugin
- Why do I get the timeout warning?
- How to add a new product type on woocommerce product types? [closed]
- How to include own css on wordpress tinymce editor?
- How to disable page delete
- add button to post edit page when post_status=publish
- how to override woocommerce specific loop or archive-product.php [closed]