Home>Support>Increase menu spacing – main navigation – to prevent word wrap.

Increase menu spacing – main navigation – to prevent word wrap.

I want to increase space between menu items so I don’t get wrapping of page titles.

I tried to fix presented here to no avail: https://siteorigin.com/thread/adjust-space-between-menu-items/

URL: http://bureau.langleyharper.com/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Hi Kdm-site

    The following selector in your Custom CSS is missing a closing curly bracket, nothing inserted after it will work:

    .main-navigation {
      margin: 0 -35px;
      background: #343538;
      font-size: 14px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
      position: relative;
    

    Hope that helps.

  2. 9 years, 6 months ago kdm-site

    OMGosh — I hate it when that happens!! Thank you for finding my bad. Doh!

    That takes care of my other thread re: Archives title too!

    You rock!

  3. 9 years, 6 months ago kdm-site

    Oops, just realized I don’t have code for spacing — Do I need “padding: 15px;”?

  4. 9 years, 6 months ago kdm-site

    Okay, I do have code. (Brain is fried.) The padding is increasing but the field size (page name) isn’t. So I”m still getting word wrap in menu.

    Thanks!

  5. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    No worries. Ok, so to confirm, the selector I pasted above, with the missing curly bracket, that’s not the one to edit to decrease spacing in menu items. Let me go grab that.

  6. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    A bit further down you have it:

    /* Menu Padding Horizontal */
    
    .main-navigation ul li a {
    padding-right: 25px !important;
    padding-left: 25px !important;
    }
    

    Were you adjusting that and still not winning?

  7. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Can set that as required, just keep them the same.

  8. 9 years, 6 months ago kdm-site

    Yes, I’m adjusting that and getting more padding but the field doesn’t grow. Interesting, if I set to 20px, the text wraps less; I set to 50px and there’s an obvious increase in padding and the words wrap more.

  9. 9 years, 6 months ago kdm-site

    With this issue I”m focusing on the “Speakers Bureau” — hoping to get peoples names and titles (ie PhD) on same line.

  10. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    I wouldn’t decrease padding more than that. I recommend upping the mobile menu collapse point to 750. You can do this from Appearance > Theme Settings > Navigation. 750 is where the second line is currently occurring, given the menu with the padding I just viewed.

  11. 9 years, 6 months ago kdm-site

    So I have:
    .main-navigation ul li a {
    padding-right: 25px !important;
    padding-left: 25px !important;
    }
    in Custom CSS and have changed Mobile to 750.

    I don’t see any change to my site — I’m on a 21″ monitor. (Just wondering how mobile settings would effect this issue)

  12. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Are you trying to stop the menu from dropping onto a second line? That’s what I’m discussing. Looking at it now, you’d need to up the collapse to 815 to stop it going onto a second line. 815px is the point, more or less, that the menu runs out of available space and drops onto a second line. If menu padding, left and right, was default and not the 25px you’ve changed it too, then this would happen sooner.

    Perhaps you can explain again what you’d like to achieve, sure I can get it sorted for you.

  13. 9 years, 6 months ago kdm-site

    Yes, stop the menu ITEM from wrapping — If you goto Speakers Bureau, Hover over “Health Care Professionals”, you’ll see “Carey Roth Bayer, Ed.D, RN, CSE”; I want this on one line.

    What is the default padding?

    Help me understand how the Mobile setting effects my desktop display. Thanks!

  14. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    The mobile menu setting inserts CSS into the head that changes the breakpoint at which the regular menu becomes a mobile menu. At 480, the menu collapses into a mobile menu at 480px. At 800, the mobile menu will appear when the screen is 800px wide etc.

  15. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Sorry, it’s late here. You’re asking about drop downs. That’s different my bad. One moment.

  16. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Here we go:

    /* Vantage Sub Menu Width */
    
    .main-navigation ul ul a {
      width: auto !important;
    }
    
    .main-navigation ul ul li {
    min-width: 250px;
    white-space: nowrap;
    width: 100%;
    }
    

    Adjust 250px as required.

    You can remove everything else we’ve added. Sorry about that. Working past my effective time here.

  17. 9 years, 6 months ago kdm-site

    Bingo. Thanks for your help and quick response.

    Where are you located?! (I’m East Coast US — 6:42 pm) It’s gotta be past 5 oclock for you! :)

    Thanks again.

  18. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Phew, sorry it took so long to get to that. Glad we could resolve in the end.

    We’re down in Cape Town, South Africa at GMT+2, so a late one.

    All the best. Let us know if you run into any further challenges you can’t solve.

    Cheers :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More