[Resolved] Remove Header from Home Page

Home Forums Support [Resolved] Remove Header from Home Page

Home Forums Support Remove Header from Home Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #183008
    Nat

    Hey Tom,

    Is there a way to add the header add on only for blog posts and NOT showing it on the homepage? I just want to add a Call To Action above each blog post!

    Thanks,
    Nat

    #183065
    Tom
    Lead Developer
    Lead Developer

    On all blog posts?

    You could use GP Hooks in the “After Header” hook:

    <?php if ( is_single() ) : ?>
        <div class="grid-container">
            Your HTML in here
        </div>
    <?php endif; ?>

    Make sure you check the “Execute PHP” checkbox.

    #183192
    Nat

    Awesome!

    It worked. Thank you Tom.

    #183223
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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