Archived topic
Targeting Just One Page
1 reply · Started by Jam on August 15, 2016
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
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" :)