[Support request] Targeting Just One Page

Home Forums Support [Support request] Targeting Just One Page

Home Forums Support Targeting Just One Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218265
    Jam

    I’m building a page using Sections. It’s a landing page and is unique from all the other pages on the site.

    Basically, it’s like a blank page (no heading, titles, sidebars, etc, hooks).

    I’ve used disable elements but there is a horizontal line/hr that I can’t get rid of as it’s in the hook.

    Is it possible to target only this page, so that that particular hook will not show on this page?

    Thanks

    #218269
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You’ll have to do it with PHP in the hook.

    Something like this:

    <?php if ( ! is_page( 'page-slug-to-ignore' ) ) : ?>
        Stuff in here will be ignored on mysite.com/page-slug-to-ignore
    <?php endif; ?>

    Then just make sure you check “Execute PHP” 🙂

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