Skip to content

How to Create a WordPress Toggle Menu for Mobile?

Key Takeaways

  • Nexter Blocks Navigation Menu block includes a built-in mobile toggle option that adds a responsive hamburger button to a WordPress header.
  • Responsive Mobile Menu activates the mobile menu system and lets the Open Mobile Menu (Screen Width) setting use breakpoints such as 768px for tablets or 480px for phones.
  • Standard and Custom are the two Mobile Menu options for Manual Menu, and Toggle settings include Navigation Width, Toggle Style, Toggle Alignment, and Navigation Alignment.
Table of Contents

On phones, a hamburger button that opens the menu keeps the header clean and the links easy to tap.

The free Navigation Menu block in Nexter Blocks turns your menu into a toggle menu on small screens.

For every Navigation Menu setting in one place, see the Navigation Menu block guide.

Before You Start

  • Edition: Free — works in Nexter Blocks (free) and with Nexter Blocks Pro.
  • Block to enable: Navigation Menu, switched on under Nexter > Blocks in your WordPress dashboard.
  • A menu in the block: Manual Menu items, or a WordPress menu with Pro.

Steps

  1. Add the Navigation Menu block to your header template and set up the menu.
  1. Open Mobile Menu and turn on Responsive Mobile Menu.
Responsive Mobile Menu on with Open Mobile Menu (Screen Width) and Mobile Menu
  1. Set Open Mobile Menu (Screen Width). Below this width the toggle menu is used; the default is 991px.
  1. Under Mobile Menu, choose Custom to reuse the same menu, or Standard (Pro) and Select Menu for a different WordPress menu.
  1. Set Menu Type to Toggle, then choose Navigation Width, Toggle Style, Toggle Alignment and Navigation Alignment. Save.

How It Behaves

  • Below the chosen width, the desktop menu is hidden and a hamburger button shows.
  • Tapping the hamburger slides the menu panel down; tapping it again closes it.
  • With Mobile Click Close Menu on, tapping outside the menu also closes it.
  • Above the width, the normal desktop menu shows.

Limitations

  • In the free plugin, pick Custom. Mobile Menu starts on Standard (Pro), which hides the Menu Type settings.
  • Standard (a different WordPress menu for mobile) needs Pro.

Troubleshooting

I do not see Menu Type or Toggle Style

Select Custom under Mobile Menu.

The hamburger shows on tablets and small laptops

Lower Open Mobile Menu (Screen Width), for example to 768.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!