[Support request] Help using GP Hooks on specific pages, rather than globally

Home Forums Support Help using GP Hooks on specific pages, rather than globally

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #321131
    Michelle

    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!

    #321219
    Leo
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.