Home Forums Support GP Hooks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #133459
    Andy

    Hi,

    I’m using the GP Hooks addon to add a slider above the navbar on the homepage. However I believe doing it this way will add the slider to every page but I only want it on the homepage.

    Can you tell me the best way to achieve this?

    Also, after adding the slider I am getting some slight horizontal browser scroll occuring, any ideas whats causing this?

    URL: http://tinyurl.com/pdasqet
    Thanks.

    #133497
    Andy

    Having checked the design I actually do need the header slider on every page. Also as soon as I add some content to a page the horizontal scrolling goes away too, so these issues are now resolved.

    #133518
    Tom
    Lead Developer
    Lead Developer

    Cool!

    For future reference, you can use some PHP to conditional show hooks.

    This would show up only on the homepage:

    <?php if ( is_front_page() ) : ?>
          Anything in here will only show on the homepage
    <?php endif; ?>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.