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.

Mega menu different width on sticky header

  • Hello there! I have a small issue with the GeneratePress simple megamenu.

    As stated in the title, mega menu is 100% width of the sticky header, and I want it to be exactly like on the regular header.

    I’ve tried some css solutions from the other threads, with no luck so far.

    Site is maintenance mode so I will leave all the login data in the private info πŸ™‚

  • Hi there,

    Try this css:

    .is_stuck .main-nav#primary-menu {
        position: relative;
    }
    @media(min-width:769px) {
    nav.is_stuck .main-nav#primary-menu .mega-menu>ul {
        width: calc(100% + 81px);
    }
    nav:not(.is_stuck) .main-nav#primary-menu .mega-menu>ul {
        width: 100%;
        transition: none;
    }
    }
  • Thank you so much Ying, works amazing! πŸ™‚

    I will close the thread now, thank you very much.

  • No Problem πŸ™‚

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