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]
- How can we upload custom page files?
- WordPress generating Undefined Variable warning
- How can I process a form submission from an HTTP POST request?
- get_the_terms – only top level
- syntax issue on php 7.4
- How do I fetch all comments per post via WP REST API?
- How do I publish only one page to production after making changes on staging?
- Have CSS Class Added with `is_page()` WP function
- Changing Woocommerce flat rate every nth number of items
- Use wp_get_recent_posts with search term
- Convert all images to PNG on file upload
- How to restrict page access to logged-in users?
- Remove query string specific key value
- is_page “range” for if statement?
- Correct syntax to html php conversion
- Calculations in functions.php [closed]
- If search results empty then execute certain code
- An unwanted inline style is added to my body tag
- Shortcode return function with link href inside PHP
- How to properly insert a link to a template in WordPress?
- Upload Image in a WordPress page using PHP
- Count the number of times the search form template gets included on a page