Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Unexpected line appearing under hero when using two navigation elements (before

  • Dear GeneratePress team,
    I’m experiencing an unexpected visual issue when using two separate elements in GeneratePress:
    • A Navigation element placed in the Before Header hook (primary menu)
    • A Header element containing a GenerateBlocks Navigation block with a logo
    When I use only the logo block in the header, everything displays correctly.
    However, as soon as I activate the additional navigation element above it (in the Before Header hook), a thin horizontal line appears underneath the hero section. When I disable the menu above, the line disappears immediately.
    The logo image has a shaped bottom edge, and the line seems to appear exactly where that shape is cut off. This only happens when both elements are active at the same time.
    I’m not sure what causes this or whether this behavior is expected.
    Could you help me understand why this happens and how I can resolve it within GeneratePress?
    Thank you very much for your assistance.

    https://postimg.cc/dkcgh8YH

    https://postimg.cc/xJVBXK2P

    Kind regards,
    Arno

  • Hi Arno,

    I can not see the line on my computer.

    Can you try setting the hero section root container gb-element-6c8857cf‘s margin-bottom to -1px?

    Let me know if this helps!

  • Hi Ying,
    Thanks for your quick reply and suggestion.
    I tried setting the hero section root container gb-element6c8857cf tomarginbottom: -1px, but unfortunately the line is still visible on my end.
    It does seem to be browser-related: I’m working in Safari, and the line appears there consistently. When I open the same page in Firefox, the line does not appear at all.
    So the issue seems specific to Safari’s rendering rather than the layout in general.
    Do you have any Safari-specific recommendations or another approach I could try?
    Kind regards,
    Arno

  • I can see the issue in Safari as well.

    Select the shape block, and set its margin-bottom to -1px instead.

    Let me know if this helps!

  • Ying, thank you very much — that solved the issue!

  • Glad to hear that 🙂

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