Avoid wrapping of Menu items 8

Note : This snippet applies to Customizr version 3.1.x and below. It may not work with version 3.2+. Use with caution on 3.2+ and check the availability and type of the hooks in the Customizr hooks API.

Last Reviewed: 29-Mar-14

If you need to avoid wrapping of Menu items:

Where to copy/paste this code?
The simplest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then we strongly recommend you create a child theme. Everything you need to know about creating a child theme with Customizr here.

 
Credit: @ludwigt


About Dave Bardell

My name is Dave Bardell (@rdellconsulting) and have been supporting the Forum since discovering this wonderful Theme in July 2013. Have learnt a lot from other Supporters (@ElectricFeet, @acub, @tomaja, and the maestro @d4z_c0nf, in particular). Have a library of snippets I've built up which in adding here, I'll try to acknowledge the original contributor but apologies to any I miss or wrongly attribute. daveb@rdellconsulting.com

  • Stacey

    Hi,

    I have tried putting the above code into the custom css and my very last menu item is still wrapping to the next line. How would I prevent this?

    Thanks.

  • http://profiles.wordpress.org/rdellconsulting/ Dave Bardell

    One of the few pieces of code I’ve not tested, many apologies. Can you send a link to your site and I’ll investigate.

  • http://www.industrialresumes.com Dan

    Hi,

    I have the same problem as Stacey, I have tried the code but the text is still wrapping. Please can you help?

    Thanks!

  • Marcus

    I think that the directive nowrap only stops wrapping multiple words within the same menu item. E.g. “About us”: the 2 words will not wrap.

  • http://profiles.wordpress.org/rdellconsulting/ Dave Bardell

    I’d suggest the Forum would be a better place to get a solution for this. You’ll get a much wider audience. This isn’t my code, and I’ve not used it before.

    Hope that helps.

  • Marcus

    Dave, well thank you for pointing us in the right direction. Cheers.

  • Bob

    Found this link in the Forum and added a missing bracket and changed a text size to em rather than px. Play with the 2nd and the 4th padding values and font size (remember “em” can be 1 or 1.2 or 1.5 or 2, not just whole integers.

  • maadh

    How can we disable menu rapping for 3.3?