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.

Smart Submenu Alignment (Prevent Off-Screen Overflow)

  • magisterschwarz

    Hi there,

    I’m using the GeneratePress theme and running into an issue with multi-level dropdown menus on desktop.

    When a submenu is nested deep enough and appears near the far right side of the screen, it opens to the right — and part of it gets cut off or overflows off-screen.

    What I need is a way for the theme to automatically detect when a submenu is too close to the edge of the screen and open it to the left instead. This should apply on desktop and happen dynamically, not via fixed manual alignment.

    Is there a built-in way to enable this behavior in GeneratePress? If not, is there a CSS or JS solution you recommend to implement this kind of responsive submenu alignment?

    As you can see, I don’t want to use a hamburger menu.

    Thanks so much for your help — I really appreciate it!

    Keith

  • Hi there,

    No, there isn’t a built-in way to automatically do this.

    I can help with CSS to adjust the sub menu if that works for you.

  • magisterschwarz

    I think I figured it out using AI. I will let you know if I run into more issues. Thank you!

  • You are welcome   🙂

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