Support » Plugin: Slideshow » Display on Homepage Only

  • Resolved leoly


    My theme (newschannel) uses an index.php as it’s homepage. Please where can I add the php code without messing up my site. When I add it to the index.php, it stretches out the content area and moves the sidebars down. However, if I add it to header.php (under nav access) it works well, the only problem is it shows up on every page and post.

    I want the slider to be flush with the menu, but show up only on the homepage.

    thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • ended up adding this and it worked:

    <?php if ( is_home() ) { do_action('slideshow_deploy', '#');}  ?>

    The problem I have now is I made some css style changes to make the slideshow blend better. Is there a way to limit the css changes to the index page only. I don’t have a page number for the index page.

    thank you.

    Plugin Author Stefan Boonstra


    If you want the CSS changes to show up only when the slideshow is on the page, you could put them in the slideshow’s custom stylesheet. You can learn how to create a custom stylesheet in the FAQ section.

    Thank you.

    I just noticed that in Firefox, my 10 slides show up and scroll. I have it set to display 5 slides, but in Chrome, IE and Opera, it only shows 6. The first 5 show correctly, but the 6th one is stretched to cover the entire slide. Strangely everything works fine in FF.

    solved, it was a cache problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display on Homepage Only’ is closed to new replies.