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?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Any post install tips after installing WordPress 3.0.1?
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to move wp-content (or uploads) outside of the WordPress directory
- How to override wp-login.php
- Remove Links from Login page
- get_terms return errors
- media_handle_upload weird thing
- Removing label ‘WordPress’ from the title bar
- Schedule cron event from widget
- WordPress Network Feature
- Comments Confusion
- large chunks of text went missing
- How to change popular term checklist title when edit post?
- Save & Publish disabled for two dimensional array Customizer
- Deep customization of wp-login.php
- Custom CSS at Appearance > Edit CSS is missing after update [closed]
- How to store page visit counts?
- Load File (Function & Variable Value) from Child Theme
- Featured Image If Else Condition
- WordPress noob, assign custom stylesheet using @import or if? Didn’t work for me
- I want to print a message in post ” After one month from publish date”
- How to query details of images in gallery that is attached to a post
- Where to store reusable content that is not a page
- How to make the Pages in WordPress Customized?
- Custom “wp_login.php?action=lostpassword” and reset password
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Conditional Logic on CF7 dropdown options
- Change admin_title of a plugin using code snippet/functions
- Adding a custom field to a slug
- How to create custom backend admin menu in different languages?
- Delete page titles
- WordPress Customizer: Check for value of CSS selector and replace it
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- Bio comes up when the visitor clicks on a picture
- How to find and replace (or add) specific word in a specific category?
- WooCommerce – Adding custom HTML to specific product pages
- How do I move my sites to a child theme without loosing customisation?
- How to create new page can get custom field other post in wordpress
- How to appoint different users to different pages?
- customize footer widgets area
- pagination does not work with query_posts. Help! [duplicate]
- Accessing + retrieving custom database in WordPress
- updated permalink structure on localhost does not work
- Word Press Theme Customiser and Child theme Function.php
- Security Issues with custom user role or changing core role capabilities?
- adding new html css to wordpress section from codepen [closed]
- How can I make a search term redirect to a page