Site logo

Archived topic

Help using GP Hooks on specific pages, rather than globally

1 reply · Started by Michelle on May 20, 2017

Viewing posts 1–2 of 2

I have applied GP Hooks to the header on the home page so that I can use a slider, but I don't want to have the slider on all the pages. I would just like to use header images on the other pages of the site. How can I apply GP hooks to only the Home page?
(I will be moving this site to other hosting once it is complete, so the php solution needs to be transferable)

https://activespirit.michellec.co/

Thank you!

Hi Michelle,

Try this in the hook and make sure Execute PHP is checked:

<?php if ( is_front_page() ) : ?>
    [slider short code here]
<?php endif; ?>

Let me know.

This archived topic is closed to new replies.