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.

Sub Menu

  • Hello, i want to create a sub menu like in the screeshot i provided you.

    Thanks in regards

  • Hi there,

    GB’s blocks can not be used to create menus as menus are handled by WordPress.

    However, if you’ve already used a plugin or custom code to create custom hooks inside the menu items, it might be possible.

    Let me know!

  • i just want to me the submenu horizontal and not vertical

  • I figure it out if anyone else would want it :

    @media (min-width: 1025px) {

    body .sf-menu > li {
    position: static;
    }

    body .main-navigation ul.menu > li > ul {
    width: 100%;
    left: 0 !important;
    }

    body .main-navigation ul.menu > li > ul > li {
    width: auto;
    }

    body .main-navigation ul.menu > li > ul > li ul {
    left: 0;
    top: 100%;
    }

    /* make submenu horizontal */
    ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    width: 100%;
    }

    li:hover > ul.sub-menu {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    padding: 10px;

    }
    }

  • Thanks for sharing 🙂

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