If you want to modify the main <header>
output take a look at header.php
. This file will be called before the other templates.
If you want to modify the template that is used to display your latest blog posts, index.php
would be the file of choice.
Index.php
is also the fallback template for any post object so you might want to let it as it is to avoid the special content being displayed on any other site.
You could conditionally hook into pre_get_posts
and do your modifications there.
You could create your own action hooks and fire them conditionally. There are many ways to achive modifications.
For Conditionals see
Related Posts:
- How to include different html tags in the header for different pages?
- How do I change/modify the_post_thumbnail(); html output?
- Change logo based on incoming domain
- Echo URL of large version of Featured Image
- add_image_size for header_image
- Responsive Header for Phone
- “imagejpeg” function is not working in wordpress
- Clickable image link sends people to wrong URL
- How to internationalize header image?
- Displaying images outside the content
- Configure WordPress to Use Responsive Image Rendering
- How to use data URL in WordPress?
- Gallery requires a featured image but does not show it in posts/pages
- Changing 2011 theme header image based on user dropdown
- HTML in PHP problem [closed]
- How to add a class to the attachment images
- How to set custom cookies before output
- Change the filename format of saved featured images
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Add custom image sizes to media uploader
- Multiple pages on one with different HTML
- Use Filename for Alt and Title Tags
- Strip Image Classes from HTML Output
- Additional image sizes are not being generated
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Header has extra HTML block at top before my code
- How to insert a local image with custom size
- Blank space at beginning of tag?
- Theme currently showing thumbnails, how to show full size?
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Show post in slider
- How can I hide Home in my menu in a specific page?
- Add a class to the anchor tag on HTML5 gallery
- Conditional Header in wordpress
- how to remove metadata from the posts of my blog?
- Set the background to a default image if there isn’t a specified “featured image”
- How to store data from multiple forms using ajax and php
- How to control WordPress image metadata (using Imagick)?
- Use DOMDocument with ob_start breaks my HTML code
- Can’t upload image using media_sideload_image
- selected option if current category is the value
- How to use thumbnail size of image if I’m only using src to get image
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Is this spyware on my site or a real Java update?
- Search WordPress using static html page
- Which function crops images in wordpress?
- Resize image to specific dimension (X to Y ratio)
- How can I automatically resize up images to fit into all of my registered image sizes
- unknown issue in ‘header.php’ preventing theme from displaying fully
- How can I use a sliced image As banner? [closed]
- WordPress plug-in for dynamic download link?
- Add meta tags to a custom header
- How to remove the h6 tag for the entry-category Class
- Override user-edit.php to design own profile page
- Change header on pages displaying taxonomy items
- Highlight the links without using dropdown
- How to turn each phone number within the $content to a telephone link?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- How do I access post_meta key with php?
- Separate array output into a
- Remove in post content
- Adding attribute to the post.php form tag in wp-admin
- Generate responsive post thumbnails of same size
- Using php inside javascript [closed]
- WordPress custom post type and taxonomy
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- Display WordPress search results based on the selected Sub-Category
- How do I call a value from the datase using ajax
- Fatal error login WordPress [duplicate]
- not outputting medium size image URL
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- Comparison operator != not working in field [closed]
- Problem with my Login Plugin
- How to return html as a string from php for WordPress
- Show subcategory name selected in specific category woocoommerce
- Unable to insert current username into custom table through html form
- Splitting table data to pages with numbers
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Headers Already Sent
- nested divs, classes for a grid in loop [duplicate]
- featured post as div background
- how to manipulate HTML parameters using PHP conditions
- Display wordpress post to static website in the footer
- Determine if only one image attached to a post/page
- upload images on front by user using form
- Php echo into tag
- PHP-Code inside Href-Tag
- How to edit homepage in WordPress?
- Adding slides to an existing carousel manually
- WP_Query not returning results
- How do I link the side images?
- How to create a container in php then customise it in CSS
- Add multiple HTML attributes to an Elementor button
- Add/alter image attribute before render