In your header.php
check if you are an the front page:
if ( is_front_page() or is_home() )
{
# your slider code here
}
else
{
# your regular code
}
The front page is the top page, eg. http://example.com/
. The home page is the page for your blog posts. That can be the same as your front page or a custom page like http://example.com/news/
. See Settings/Reading in WP admin.
Related Posts:
- How can I make add_image_size() crop from the top?
- How do I force wp_enqueue_scripts to load at the END of ?
- What plugin can I use to create a list / slideshow of featured images?
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Prevent publishing the post before setting a featured image?
- Add code into on a per page/post basis
- Modify featured image URL at runtime
- How to remove/hide action links cluttering under specific plugins’ names
- Change My Basket text in the header of WooCommerce Artificer theme
- Add post thumbnail from external image with plugin
- Thumbnail with different sizes
- How to send “Location” header on plugin form submit event?
- Strip HTML comments from plugins in header/footer
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- send_headers don’t work on wordpress multisite
- AJAX image upload with a upload progress bar using media_handle_upload
- Converting Attachment to Images?
- ReOrder Post Within Categories plugin with featured image
- adding meta data using plugin to top of head
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Headers already sent when I try to add headers via a shortcode
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Show an image in my header.php
- Headers Content-Security-Policy CSP Major Issue
- How to debug error message: Cannot modify header information
- Set featured image using javascript in post editor
- Add padding while generating thumbnail
- How to export all content with feature images?
- Object method calling for global $wpdb in header.php
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Redirect to another page using contact form 7? [closed]
- Know which plugin is calling JS in wp_head()?
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- My single.php page does not show the related data to the post which is clicked
- Enqueue stylesheet in plugin for wp-login.php
- Plugin to hide image in excerpt
- Cropping images from top center using Jetpack Photon
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Custom Login Page — wp_signon Headers Already Sent?
- Adding Plugin Assets to Header
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- echo get_option in header template
- Add “Featured Image” box in my plugin post page
- Couple of beginner’s questions [closed]
- Scrape a webpage for image and add it to post
- Cannot access WP admin because plugin returns 204
- Adding featured image to posts created by a plugin
- force jQuery to load in the head
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- Add_image_size not generating correct size
- Edit page header on a custom plugin
- How do i ‘deactivate’ a plugin only on a certain page template?
- how would I include some html in the header section of a wordpress plugin? I get an error
- Multiple Post Thumbnails Plugin – Need help with code
- How do I fill the Home Description?
- Hook for plugin to insert into entry-meta
- sliding/fading header plugin or approach suggestion
- How to make a slider hearder?
- How to hide featured images of all posts falling under the same category in wordpress?
- Revision featured image
- Allow webp use on website but disallow webp as featured image during post creation
- Upload Image with a file URL and show dynamically on Frontend
- Prevent WordPress from sending set-cookie http header
- insert og image link in wordpress post
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- automatically set random featured image by category in wordpress on post
- Import 2000 posts from one website to another
- Hide Featured Image in AMP
- WordPress create thumbnails on demand
- How to change the width of certain paragraph or header blocks?
- Modifying server’s response to API endpoint
- How to fix shifting header after installing speed / cache plugins?
- Cannot modify header information – headers already sent during plugin activation
- Debug in WP backend
- How to overlay a webcomic plugin on top of a header image?
- Set Content-Type header in do_parse_request filter
- Automatic set a featured image from the first image’s url (or tag) in the article
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- Update (a function) post’s featured image as soon as $image_url changes
- Can’t get or display post thumbnail in wordpress
- Problems with installing and deleting plugins
- Change text “My Basket” in woocommerce artificer theme
- Determine if get_the_image has image on Get the image Plugin
- Advanced Custom Field User Help URL
- Retrieve post thumbnails
- WordPress repository forbids me call wp-load.php in non-WordPress file
- featured image problem with custom post type
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- How to laod wp_enqueue_style to another header i created my self
- when i use wp automatic plugin post shows broken images
- Cannot modify header information – headers already sent by
- Display Video as Post Thumbnail
- Get URL for featured image for posts? [closed]
- Multiple Post Thumbnails Not Returning URL for Background Image
- Footer option is missing in Customiser
- No Google Analytics code rendered in the header?
- all plug-ins load scripts on all pages