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.

Mobile sub-nav bar spacing

  • There is so much space between my subnav items that they don’t all show up on mobile. How can I lessen the space between menu items?
    Thanks, Jana

    Here is what I have for css:
    /*3rd level menu indent*/
    .dropdown-click .main-navigation ul ul ul.toggled-on, .dropdown-click .main-navigation ul ul li.sfHover > ul.toggled-on {
    padding-left: 10px;
    }
    /*3rd level menu typography*/
    .dropdown-click .main-navigation ul ul ul.toggled-on > li >a, .dropdown-click .main-navigation ul ul li.sfHover > ul.toggled-on >li >a {
    font-size:16px;
    line-height: 10px;
    }
    @media (max-width: 768px) {
    .mobile-header-navigation .site-logo.mobile-header-logo img {
    height: 108px;
    }
    .menu-toggle, .main-navigation .mobile-bar-items a {
    line-height: 108px;
    }
    }
    @media (max-width: 768px) {
    .navigation-branding img, .site-logo.mobile-header-logo {
    height: 108px;
    }
    }
    @media (min-width:769px) {
    .main-navigation .main-nav ul li.nav-button a {
    background-color: #fe7c40;
    border: 1px solid #5e5339;
    color: #5e5339;
    line-height: 35px; /*this number will likely need to be adjusted*/
    }
    }
    .navigation-search {
    top: 100%;
    max-width: 600px;
    margin: auto;
    }
    .main-navigation .main-nav ul ul li a {
    padding-left: 20px;
    }
    .main-navigation .main-nav ul ul ul li a {
    padding-left: 35px;
    }
    .main-navigation .main-nav ul ul li:not(:last-child) a {
    border-bottom: .5px solid #fff;
    }
    .main-navigation.toggled .main-nav ul li a {
    line-height: 40px;
    }

  • Hi there,

    Can you link me to the site so I can inspect the issue directly?

  • Hi there,

    For menu that contains so many sub menu items, it’s recommended to use the off canvas panel, can you give that a try?

    The setting is at customizer > layout > off cavas panel.

  • Hi, I don’t would prefer not us have an off-canvas menu. Isn’t there some css code that can tighten up the spacing between the pulldown items on mobile?

  • The setting is at customizer > layout > primary navigation >Menu Item Height (mobile).

    However, it’s not scrollable if the navigation height exceeds the screen height.

  • Thank you, Ying, that worked perfectly. Why didn’t I think of that??

  • You are welcome 🙂

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