WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. gem245
    Member
    Posted 6 months 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 6 months 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 6 months ago #

    Hi,

    You should use this function.

    Best regards,
    Stefan

  4. gem245
    Member
    Posted 6 months 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 6 months ago #

    No problem:

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

  6. gem245
    Member
    Posted 6 months ago #

    That didn't seem to work :/

  7. gem245
    Member
    Posted 6 months 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 6 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.