[Resolved] After Header Content Hook

Home Forums Support [Resolved] After Header Content Hook

Home Forums Support After Header Content Hook

  • This topic has 5 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #306199
    Paul

    How can I make an after header content hook the full width of the header (same as the primary nav below).
    I’ve tried:

    <div class="after-header-content-bar">
    <div class="grid-container grid-parent">
    <div class="grid-100">
    After Header Content
    </div>
    </div>
    </div>
    <div class="grid-container grid-parent">
    <div class="after-header-content-bar">
    After Header Content
    </div>
    </div>

    The content bar still has padding either side, not full width of the header. I did find this answer – https://generatepress.com/forums/topic/gp-hooks-after-header-width-of-content-area/

    Maybe I’ve implemented it wrong.

    Thanks in advance,
    Paul.

    #306271
    Leo
    Staff
    Customer Support

    Hi Paul,

    I think you could try using the after header hook instead of after header content: http://demo.generatepress.com/hook-locations/

    Let me know if this works.

    #306314
    Paul

    Hi Leo,

    The after header hook works fine – but I already have other content in there.

    Thanks,
    Paul.

    #306401
    Leo
    Staff
    Customer Support

    You can actually insert as many Divs as you want.

    So like this:

    <div class="after-header-first">
    First content
    </div>
    <div class="after-header-second">
    Second content
    </div>

    Let me know if this helps.

    #306536
    Paul

    Yeah that would work. Or I guess I could use the before header hook too.

    This ticket can be closed.

    Thanks for your help,
    Paul.

    #306557
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

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