[Resolved] Removing a GP hook from a Blog Page

Home Forums Support [Resolved] Removing a GP hook from a Blog Page

Home Forums Support Removing a GP hook from a Blog Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #93296
    colin avis

    Hi Tom, I have an issue where i have added a slider below the header in GP Hooks, This makes this now global across the site, although i would like to disable it for my blog page.

    Here is the link to the page in question as it is ruining the grid of the blog page?

    http://www.spectrumdating.co.uk/category/members/

    Any ideas?

    #93535
    Tom
    Lead Developer
    Lead Developer

    Hi Colin,

    If you’re only trying to hide it on the blog page, you can use these conditionals:

    <?php if ( ! is_home() && ! is_archive() ) : ?>
          Your shortcode in here
    <?php endif; ?>

    Then tick the “Execute PHP” option, and you should be good to go 🙂

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