How to make my slider appear only on my homepage? I removed the header image of my theme from the header.php file and added a slideshow made by smart slider 3 . How to stop showing it in all pages? I want the slider only in my home page. thanks a lot. i am using a theme named ‘jetblack’

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1053
    faruquei
    Participant

    How to make my slider appear only on my homepage? I removed the header image of my theme from the header.php file and added a slideshow made by smart slider 3 . How to stop showing it in all pages? I want the slider only in my home page. thanks a lot. i am using a theme named ‘jetblack’

    #1054
    Lianad311
    Guest

    Look up is_front_page(); . You just need to toss a conditional around that template part so it only shows up on the home page. That is of course if your home page is set to a static page in settings. Otherwise you will need to use is_home();

    #1055
    kiva-churro
    Guest

    Why are you not running the shortcode at the top of the home page?

    #1056
    diewhilelive
    Guest

    Make sure you’re editing your theme’s child theme or else all of your changes will be wiped the next time your theme gets an update.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.