Support » Plugin: Slideshow » Add Slideshow To Front Page Only

Viewing 7 replies - 1 through 7 (of 7 total)
  • gem245

    (@gem245)

    I’ve placed the code in the header.php and the slideshow appears on the home page in a specific area under the header.

    http://www.dancisko.co.uk

    I want to remove it from all other pages so the slideshow shows only on the homepage.

    Any ideas??

    Plugin Author Stefan Boonstra

    (@stefanboonstra)

    Hi,

    You should use this function.

    Best regards,
    Stefan

    gem245

    (@gem245)

    I’m probably being a complete numpty….I’m new to this.

    Where would I place the is_home?

    <?php do_action (‘slideshow_deploy’, ‘277’); ?>

    Plugin Author Stefan Boonstra

    (@stefanboonstra)

    No problem:

    <?php if (is_home()) do_action ('slideshow_deploy', '277'); ?>

    gem245

    (@gem245)

    That didn’t seem to work :/

    gem245

    (@gem245)

    Oh I’ve done it. I just needed to change is_home to is_front_page

    Thanks very much, your slideshow is great 🙂

    Plugin Author Stefan Boonstra

    (@stefanboonstra)

    Thank you very much for the compliment. It’s great to hear it works now!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add Slideshow To Front Page Only’ is closed to new replies.