If you’ve got a particularly wide menu that’s wrapping on smaller screens, there’s an easy fix for it. Using a simple media query, you can swap the normal desktop menu out for the mobile version (hamburger – the three horizonal bars you see on mobile phones). Add the following CSS and adjust the max-width to determine when the hamburger replaces your normal Divi menu.
A max-width of 1024 pixels should be good to wrap on tablets but by increasing this amount you can achieve the same effect on smaller desktop and laptop screens.
I’m sure that will take care of some of your headaches.
Update:
If you have a particularly large menu, you might encounter problems with it not scrolling properly on smaller screens, the following CSS should fix that for you:
Divi Notes started as a way to document my own WordPress and Divi web design/development journey and, to my delight, has grown to become a helpful resource to many other Divi users out there. If you’ve found Divi Notes to be useful in your journey, I’d appreciate it if you would consider supporting me using the form below.
Thanks Rob
Hey Rob! i found your website by googleing few things for divi.
I think it is awesome what you are doing here, but i see that there is such a small amount of content, are you planing on uploading some more?
Thanks Andres, glad you’re enjoying the content. Would love generate more, just need to find the time. Freelancing, my day job, family, and life keep my pretty busy. What I’m working on at the moment is a Divi layout pack which I’m hoping to publish here in the next week or so.
Het Rob, Great tip and I really needed something like this for a site I’m finishing up. I seem to have a problem tho. The menu switches to the Hamburger now which is great, but when I try to scroll the drop down menu in landscape mode on an ipad mini it actually scrolls thru to the web page. In other words I can not scroll down thru the menu. This action is happening in Chrome and Safari. Portrait mode works as usual (scroll thru menu) The web addy is http://kenhitsman.com/lp/home any help would be appreciated. Thanks.
Hi Ken,
You can use the following CSS to enable the menu to scroll:
https://gist.github.com/robhob/c02f9450e9e48bd80f270be59f24507f
You saved my life man, thx! 🙂
Thanks Rob, this helped us out immensely!
Glad to have helped. 🙂
Hi Rob I have a question about menu and logo in small screens. How to change the height only in mobile devices .My problem is that the hamburger menu and logo look likes perfectly in ipad or similar but not in smaller screens. Any idea or solution about this?
Many thanks for your help.
Hi,
I think this will help:
http://divinotes.com/increase-the-size-of-your-divi-mobile-logo-and-menu-text/
Hi Rob .
I read your link and it’s very useful and the solution to my problem.
Thanks again .
Glad to hear you came right.
Brilliant, tnx a lot!
Hi – I’m actually looking to do the opposite as I’m not a fan of the hamburger menu for my site – is there anywhere with instructions to go back to a normal menu?
Hi Aaron,
I’ve just published “Stop Divi Mobile Menu (AKA The Hamburger) From Appearing Till The Screen Size Is Much Smaller“.
Cheers,
Rob
Hi, I’ve tried adding this but nothing happens? My tablet landscape menu is still the normal one (not hamburguer). Thank you in advance!
Thanks Rob worked well on our website where the menu items were clashing with our logo