WordPress.org

Forums

Slideshow
[resolved] Add Slideshow To Front Page Only (8 posts)

  1. gem245
    Member
    Posted 1 year ago #

    Hi

    I've installed slideshow but it appears on every page. I just need it to appear on the front page. I placed the code in the header.php file.

    Thanks

    Gem

    http://wordpress.org/plugins/slideshow-jquery-image-gallery/

  2. gem245
    Member
    Posted 1 year ago #

    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??

  3. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You should use this function.

    Best regards,
    Stefan

  4. gem245
    Member
    Posted 1 year ago #

    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'); ?>

  5. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    No problem:

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

  6. gem245
    Member
    Posted 1 year ago #

    That didn't seem to work :/

  7. gem245
    Member
    Posted 1 year ago #

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

    Thanks very much, your slideshow is great :)

  8. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.