Site logo

Archived topic

GP Hooks

2 replies · Started by Andy on September 1, 2015

Viewing posts 1–3 of 3

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.

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.

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; ?>
This archived topic is closed to new replies.