Sometimes the names can be misleading as home.php actually refers to the page that stores all of your blog posts.
In general, use either page-home.php or front-page.php for the home page and then page.php for the rest. Whenever you have a specific page with a different layout, you can create a new template that is styled specifically for that. Eg. page-contact for a contact page that doesn’t follow the styles of other pages. The page-XXXXX.php is dependent on the slug of the page so that is how WordPress finds it.
Related Posts:
- how can I add an icon/image for a child theme?
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Caching and Versioning for rtl.css
- Getting instance variable in scope of ‘wp_enqueue_scripts’
- How to change admin bar color scheme in MP6 / WP 3.8 front end?
- How to add Color Picker in Theme Options for the following?
- When to use esc_url, esc_html, esc_attr, and friends?
- Theme Review: post thumbnail, header image, content width
- How to determine if a category is empty?
- The seventh parameter passed to add_submenu_page()
- How to enqueue scripts and styles only when there are needed?
- Unexpected width and srcset attributes for the_post_thumbnail();
- Pushing updates to your premium theme
- The best way to add stylesheets to WordPress
- WordPress custom post type page dysplay 404 error
- How wordpress handle upload images and how to use them in the code
- Change loop order via form or link (jquery, not URL)
- how to create theme based widget that can be drop in sider bar or footer
- CSS in child theme not overriding the parent theme [closed]
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- How to test for MU via functions.php?
- List categories and exclude child categories
- Am I supposed to create a child theme for every theme I use?
- WordPress as a data intensive web app
- How to determine which custom header image is being shown
- Custom shortcodes not working using __s theme
- Disable wp_enqueue_style for theme on wp-admin
- Override theme programmatically
- Add submenus to Theme options menu
- Custom URL parameters in template files
- How do I remove TinyMCE text format
- wp_post->post_parent object returning 0
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Change content layout based on menu hierarchy
- Theme Loading Into Dashboard
- display menu with out list tags
- Disabling automatic teasers
- Can “Recent Posts” widget be filtered by functions.php?
- attachment.php code or tutorial
- How to filter or remove the “title” attribute from category links
- Change “Thumbnail”, “Medium” and “Large” image sizes using functions.php?
- Remove CPT slug from URL WordPress
- Custom get_the_excerpt() only works on first post
- Permanently activate WordPress theme
- How can I add custom text styles to the visual text editor?
- Common single page template options
- 2 loops, is_home won’t work, count is off
- how to remove the gallery shortcode in wordpress?
- What PNG Fix script do you recommend for IE6?
- How to show specific post meta?
- wpautop on section
- Are seven additional image sizes are too many?
- Show specific category posts on Genesis framework home page
- registering a global template wordpress 6.0
- How do I use wp_nav_menu?
- How to add InnerBlock multiple times in the same block
- Get Post’s Excerpt Without the Wrapping tags and the Read More link
- Templates dropdown not appearing using _s theme (underscores)
- get_header action not working
- Navbar- disable “onClick” drop-down
- Injecting pre-defined text from custom page template to editor
- Some doubts about WordPress handle the horizontal main menu visualization
- How To Display Value from Theme Options Field in Front End Template?
- Changing footer depending on URL (poli language site)
- Update Specific Key Value in Complex `wp_options` object
- Using Foundation 5 off-canvas-menu with WordPress
- multiple queries to get posts from same category?
- Parent/Child pages
- How to set a custom URL for the iframe in the customize page
- Cart displayed above header
- “The REST API did not process the context query parameter correctly.” Custom theme conflicting with Media Library
- Wrong activation/confirmation link in email
- Post Featured Image Custom Sizing?
- Theme: dropdown hover menu not showing up in IE/Edge
- How to enqueue scripts properly with ES6 webpack?
- Disabling wordpress added class
- how to ensure responsiveness in wp themes? [closed]
- PHP Script on a template page & dealing with URI’s
- Whether an tag is required in header?
- home is not working in wordpreess
- Responsive Images with art direction
- Correct form of escaping and localization – functions.php breadcrumbs
- Activating theme in local MAMP installation results in HTTP ERROR 500
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- Where to find this broken link in order to remove it
- Woocommerce Theme Reviews / Comments
- background_image support multiple image size?
- Support Multiple featured images
- Moving Posts and Users Only to New Site
- What are these variables and where are they documented?
- Want to display page content after password prompt without page reload
- Programatically add a page in WordPress
- How to highlight current menu bar base on the URL?
- Roll my own theme or customize an existing one [closed]
- Why do some sites show themes/”themename” as the only theme?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Add wrapper for a specific sub-menu
- Theme’s featured image option is not showing up