Change 3-bar menu to Inline on responsive viewports

Note :This snippet works only with the Classical style option. More about the theme style option here

Last Reviewed: 27-Aug-15 (3.4.8) 3.4.*

There is a lot of debate on the value of the 3-bar Hamburger Menu on the web. A fairly common request is to remove it from the Customizr navigation, so this Snippet was written to achieve that.
The snippet removes the 3-bar menu, but does not attempt to change the styling of the menu items as the viewport reduces. This will require further work by you to decide what you wish to do (eg reduce font-size, inline spacing etc).

Where to copy/paste this code?

NoteSince Customizr 3.3.1 (Customizr-Pro 1.0.12), because of new wp themes guidelines, you cannot use single (double) quotes in the Custom CSS in customizer. Use a Child Theme.

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.

Related Snippets you may also like

13 thoughts on “Change 3-bar menu to Inline on responsive viewports

  • StrixCZ

    Thank you for this! 🙂 Now, what changes do I have to make to the code above, if I want the menu to:
    1) Be aligned to the center, instead of the left side.
    2) Never wrap to more than one line (and scale the font down instead, if necessary).

  • Menaka S

    Hi Alex, Do create a horizontal menu only. In smaller viewports, it will be automatically shown as a 3-bar vertical menu.

  • Alex Goforth

    Thanks for this. This is exactly what I want to do, but despite inputting the code into a childified style.css file, where I’ve added other alterations to the page, this doesn’t seem to work for me.
    Any advice would be much appreciated.

    • Menaka S

      Do give more information about what alterations you have done. To start with, do give a link to your site.

        • Menaka S

          Hi Alex,
          I saw your site. The table is fine. You have two menus. One is vertical and the other regular. What do you want to achieve with these menus? Do you want the Vertical menu to be displayed like the regular menu? Then, what happens to the regular menu?

          • Alex Goforth

            Thanks Menaka. I want the horziontal menu as standard and the vertical menu only on smaller viewports, i.e. smartphone, but can’t find a way to remove the verical menu.

  • Gaby Isabelle

    Thank you for this.

    I played around on some devices (tablet, computer, phone), and my only problem is on the phone.
    The menu behaves fine, wrapping up and everything, but it overlays the rest of the page. What I want it to do is just push Not being very good in CSS, I was wondering if you could help me with that?

    Thank you!

    Gaby Isabelle

Comments are closed.