See WordPress Template Hierarchy and figure out which page you’ve to modify.
From this figure, it’s easy to see that if you want to modify your homepage, you have to modify frong-page.php
. It it doesn’t exist, check if a custom page template is used to serve the home page and edit that page template. If front-page.php
doesn’t exist and you are not using page, check home.php
. If there is no home.php
, the last resort is index.php
.
Related Posts:
- How to use data URL in WordPress?
- How do I change/modify the_post_thumbnail(); html output?
- start_lvl Ignored in Custom walker_nav_menu
- Modify previous and next text from pagination links
- How to get the registered sidebar’s name by its id?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- One button to change all settings in theme customizer?
- Calling a method from functions.php on a click of a button
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Nice scroll to wordpress
- Design view breaking on Pages
- HTML table from shortcode with multiple parameters
- How the functions in WP are called in tags
- Placing raw HTML inside a WordPress shortcode
- Add a Second Menu to a theme that only support 1 menu
- Slide in Panel WordPress Post
- Shortcode content output but not in correct place
- Can’t load WP function into external function
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Removing unneccessary p-tags (Not every p)
- Set WordPress Default Template
- Add a class to the anchor tag on HTML5 gallery
- Converting HTML Template to WordPress Theme
- WordPress add post format support not working
- Populate dropdown with Child Pages based on Parent Page chosen
- How to store data from multiple forms using ajax and php
- Use DOMDocument with ob_start breaks my HTML code
- Blog posts repeat
- Different post styles depending on category
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Add .htm extention to a custom taxonomy
- How do I link a button I created in theme customizer to a function?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Noscript not working as it should in wordpress site
- How to make modifications only to certain elements of an HTML string on the server-side?
- Widget back end radio button issue
- Custom Pagination is Broken
- get_template_directory adding FTP root folders in urls
- Adding function to child theme’s function.php
- blank white page when post/update/change option etc
- How to use the checked() function to check for a non-empty var
- Calling function in loop causes repeat data
- How can I use custom menus with a Bootstrap WordPress theme?
- Randomize Color Scheme Selection in Theme
- Displaying Slider in Front Page (home) using Customizr Theme
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- call a string/function from database
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Wrap title and excerpt in a div (latest posts block)
- Time Delay a URL Redirect for Specific Page
- how to changes mobile menu toggle breakpoint in WordPress
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- WordPress User Meta value variable into Google Gauge Chart
- Adding HTML Code to Replace Text in PHP
- PHP function for horizontal Woocommerce thumbnails and badges
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- HTML comment cause issue in functions.php script root
- Remove span tags from WooCommerce Downloads page
- How to override theme’s public static function inside of a trait?
- how to use 2 index.php file One for mobile and one for desktop
- How to center all text body in single.php at once?
- Menu to the right of screen on desktop using Bootstrap 4
- How can I get my pagination loop to display the correct number of total pages?
- Can’t get_users info by using json_encode
- user update profile for custom code
- Show post/page into div using function
- WordPress HTML Helper
- Inserting A Feed and Sidebar into an HTML Page
- Gallery requires a featured image but does not show it in posts/pages
- Cant get theme to change footer color through theme customizer
- Sorting Problem
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- Add multiple HTML attributes to an Elementor button
- a problem in class in class-wp-hook.php
- Font Awesome Icons as squares [closed]
- WordPress Infinite Scroll without using any plugin
- How to remove a metabox from menu editor page?
- New Plugin Review
- WordPress does not load page.php, return 404.php
- jQuery not defined
- parts of url disappear when using # inside href=”” [closed]
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Content filter won’t work
- Missing a text-domain esc_attr_e
- Extract and display user infromation on an automatically created page
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Execute PHP code only with specific user role
- Show sidebar only to author of post
- how to add custom select field to wordpress edit page
- How to Change Site Elements based on referring URL
- Add disclaimer before certain posts and pages
- Use Custiomizer to setup meta theme color tag
- auto metakey value on post tile
- How do I routinely extract the thumbnail of the most recent post?
- calling a function from a class in your template
- Showing custom field contents without listing description