As shown in the template hierarchy image from the documentation, you can name your .php
file as front-page.php
or home.php
.
By default, WordPress sets your site’s home page to display your latest blog posts. This page is called the blog posts index. You can also set your blog posts to display on a separate static page. The template file home.php is used to render the blog posts index, whether it is being used as the front page or on separate static page. If home.php does not exist, WordPress will use index.php.
- home.php
- index.php
Note: If front-page.php exists, it will override the home.php
template.
See the image below:
Related Posts:
- home.php or frontpage (via settings) for theme?
- How can I make WordPress serve homepage to different URL?
- How do I make my single-work page show on my front-page.php?
- is_home() in HTML head
- Create a front page template and separate page for posts?
- What does choosing a Post Page do?
- Accidentally deleted the ‘home’ page as my front page, can someone help?
- ‘Nothing found’ on home page after custom CSS edit
- Last single full post in home page, excerpts in blog list
- Override static home page post
- Passing queries in the Homepage loads index.php instead of front-page.php
- When to use is_home() vs is_front_page()?
- View homepage in a preview mode
- Show two different sized featured images on homepage
- Natural URL Design and static front page
- How to use custom Html file instead of wordpress homepage
- If its not frontpage
- Landing / Static HTML page
- Changing the homepage
- Add Adsense code in index.php
- custom, static home page / landing page with Twenty Eleven theme?
- How to get the original post_id of a static home page?
- How to check if current static page is frontpage from admin plugin
- How to only show the first X words (from each post) on the home page?
- Theme’s page.php and index.php template files are confusing me
- How to create an archive for all posts that do not have a post format?
- Query string becomes encoded when a static page is used as homepage
- front end publishing not working on front-end page
- WP Multisite Static Frontpage
- query_vars in home, not loading the “home” page
- get_home_path() returning error 500
- Insert Latest Articles in Homepage
- How to display thumbnail and excerpt of a page on homepage?
- How do I make the main page be the blog page and not a separate “home” page?
- Testing if current page is the static page set as home page
- How do I make the homepage as the blog page?
- When clicking on “home” page from any other page, it goes to IP address and my website doesn’t load
- In db https is used for home, but in backend http is used and cannot be edited
- When does WP ignore content added through the backend editor?
- How to set up a single portfolio page as home page?
- Overwrite style.css styles from index.php style
- my homepage does not have SSL but another page is ok
- Allow a static page to show on a dynamic home blog page before the posts
- How to make a video play for homepage?
- Template hierarchy about pagination after front-page.php
- How to get the true permalink of the static home page?
- How to show snapchat snaps on my wordpress! [closed]
- Why does my homepage sometimes shows up in black and white text?
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- How do I make a page appear like the “Your latest posts” from homepage display options?
- static homepage no longer shows [closed]
- How can I make a portion of the home page user configurable?
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- Weird Symbols in Chrome (wordpress) [closed]
- Main timeline in a different path
- How can I confirm I’m on the home page
- How can I show/hide HTML elements if the page is_front_page
- Try to run a function only on Home
- My custom template page not loading content inside it?
- Using a conditional tag for the home page banner
- How can I make my posts on my home page just show summaries?
- Recent posts on homepage
- wp-admin/admin-ajax.php – Slowing My Site down
- How not to show leave a Reply to Home Page?
- What file is the standard frontpage that lists all the posts?
- Automatically set Homepage
- Merging two pages into one homepage
- How do I get my blog posts to appear on homepage?
- How do I make a page the landing page?
- WordPress Home Page
- improve my array to display the_title, category, excerpt for homepage
- index.php isn’t front page but shows as it is
- Static homepage duplicate issue
- is_front_page and is_home are not working in page.php
- Finding the index page using the admin panel of wordpress
- Theme Development -> Specific Homepage
- Different banner on home page
- Coming soon page used instead of home page
- Possible to Alternate between Two Home pages?
- Delete Title and Icone in Homepage
- How do I put my frontpage featured image in a page template for home.php?
- Homepage white screen after migration server
- Working with WordPress theme
- Make Home page current if there are sub-menus
- Making draft page as the main page
- Contributors should only access home page
- Show latest posts on responsive theme
- Different URL for homepage then all your other pages
- Fixed home page
- How to make my Home button on the menu redirect to my root page
- On home page remove link from logo
- wordpress help needed. How to display both home.php and index.php?
- 1 post per category on homepage and counting those posts
- homepage loading too slow
- Why can’t I gain access to my homepage images?
- Problems with homepage in different browsers
- Homepage Duplicated with each Post
- How to show taxonomy on front page
- After upgrade my WordPress version 5.4.4 to 5.6, I can not set my homepage
- Ability to change homepage on WordPress using API