Site logo

[Resolved] Post hero not aligning with header and content

Home Forums Support [Resolved] Post hero not aligning with header and content

Home Forums Support Post hero not aligning with header and content

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2549080
    John

    I’m still very new to GP šŸ™ and I’m sure there is likely a simple answer. However, I’ve struggled to find a solution for a few hours now and can’t find a solution in the support pages.

    I’ve created a post hero but it doesn’t align with the header and content. I’ve attempted to use spacing/padding to resolve however when I add corrections to fix it then is out for other screen sizes.

    Any help would be greatly appreciated.

    #2549094
    John

    I have attempted to create another hero post using a template but the issue still occurs with all hero content aligned to the left out of sync with everything else.

    #2549146
    Ying
    Staff
    Customer Support

    Hi John,

    I’ve created a post hero but it doesn’t align with the header and content.

    Can you link us to a post where we can see the hero?

    #2549161
    John

    As requested

    #2549272
    Ying
    Staff
    Customer Support

    Hi John,

    I assume the hook you are using is before_header, this hook is full-width by default.

    You can do so:

    1. edit the GB container’s max-width to 1200px which is your theme content container width.

    2. set the GB container’s margin left and margin right to auto to center it.

    3. add 40px left/right padding for desktop/tablet, and 20px left/right padding for mobile.

    #2550569
    John

    Thanks for your reply.
    Strangely, I had set it as after_header thinking it meant site header when I changed to the quick hook setting as before _content it resolved the issue.

    #2550593
    Ying
    Staff
    Customer Support

    Glad to hear that šŸ™‚

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