Skip to content

How to Create a WordPress Toggle Menu for Mobile?

Key Takeaways

  • Nexter Blocks Navigation Menu block hides the normal menu on small screens and shows a hamburger button that opens and closes the mobile panel.
  • Open Mobile Menu uses a screen-width setting, with the default at 991px, to decide when the mobile menu takes over.
  • Menu Type Toggle is free, while Swiper and Off Canvas are Pro options, and the page says the same menu items appear as the desktop menu with no second list to maintain.
  • In the test with Nexter Blocks 5.0.11 on WordPress 7.1.5, 390 px shows the hamburger and 1200 px shows the normal menu, while Mobile Click Close Menu closes the panel when clicking outside it.
Table of Contents

To create a toggle menu for mobile, add the free Navigation Menu block from Nexter Blocks, turn on Responsive Mobile Menu, choose Custom under Mobile Menu, and keep Menu Type set to Toggle.

What It Does

On small screens, the block hides the normal menu and shows a hamburger button. Tapping the button opens the menu as a panel, and tapping it again closes the panel.

Why It Matters

A long row of links takes a lot of room on a phone. A toggle button keeps the header compact until the visitor asks for the menu.

What You Get

  • A hamburger button with a choice of styles
  • A width setting that decides when the mobile menu takes over
  • The same menu items as your desktop menu, with no second list to maintain

Benefits

  • No custom code to write
  • One block handles both desktop and mobile menus
  • You control the button and panel alignment

Capabilities

SettingWhat it controls
Open Mobile Menu (Screen Width)The width where the mobile menu takes over. The default is 991px
Menu TypeToggle (free), Swiper (Pro) or Off Canvas (Pro). This page covers Toggle
Navigation WidthFull Width or Boxed panel
Toggle StyleThe look of the hamburger button, Style 1 to Style 5
Toggle AlignmentWhere the button sits
Navigation AlignmentHow the links line up in the panel
Mobile Click Close MenuCloses the menu on a click outside it. On by default

How It Works

The block outputs your menu items for desktop and again in a mobile panel, and uses the screen width you set to decide which one shows. In our test with Nexter Blocks 5.0.11 on WordPress 7.1.5, at 390 px wide the hamburger showed, one tap opened the panel, a second tap closed it, and a click elsewhere on the page also closed it. At 1200 px wide the normal menu showed and the button was hidden.

How to Use It

  1. In your WordPress dashboard, check under Nexter > Blocks that Navigation Menu is switched on.
  2. Add the Navigation Menu block to your header template and add your items with Manual Menu.
  3. 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).
  2. Under Mobile Menu, choose Custom.
  3. Set Menu Type to Toggle, then choose Navigation Width, Toggle Style, Toggle Alignment and Navigation Alignment.
  4. Save, open the live page on a phone and tap the button.

Use Cases

  • A business site header with more links than fit on a phone
  • A blog that wants a compact header above its posts
  • A landing page that keeps navigation out of the way on small screens

Limitations

  • In the free plugin, choose Custom. Mobile Menu starts on Standard (Pro), which does not show the Menu Type settings.
  • Using a different WordPress menu on mobile needs Nexter Blocks Pro, as does the WordPress Menu type.
  • In version 5.0.11, the click-outside close is set up only when the browser window is 991px wide or narrower as the page loads. If you raise the mobile width above that, wider screens close the menu with the toggle button.

Troubleshooting

I do not see Menu Type or Toggle Style

Turn on Responsive Mobile Menu, then select Custom under Mobile Menu.

The hamburger shows on tablets or small laptops

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

The menu does not close when I tap outside it

Check that Mobile Click Close Menu is on. Then reload the page at a width of 991px or less.

I cannot find the Navigation Menu block

Switch it on under Nexter > Blocks, then reload the editor.

Suggested Reading

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

Why does the mobile menu show a hamburger instead of the full navigation on phones?

On small screens, the Navigation Menu block hides the normal menu and switches to a hamburger button so the header stays compact. That matters because a long row of links eats up space fast on a phone. Nexter Blocks outputs the same menu items for desktop and mobile, so you are not maintaining a second menu list just for mobile.

How do I make a WordPress toggle menu for mobile with Nexter Blocks?

The setup is simple: enable the free Navigation Menu block, turn on Responsive Mobile Menu, choose Custom under Mobile Menu, and keep Menu Type set to Toggle. The key detail is that Toggle is the free option, while Swiper and Off Canvas are Pro. If you want the mobile panel behavior described on this page, Toggle is the setting that drives it.

What should I change if the hamburger menu appears on tablets or small laptops?

Lower Open Mobile Menu (Screen Width). The page calls out 991px as the default takeover point, so if your hamburger is showing too early, moving that breakpoint down to something like 768px delays the switch to smaller screens. That is the cleanest fix when you want desktop-style navigation to stay visible longer.

Why doesn't the menu close when I tap outside it?

Mobile Click Close Menu needs to be on, and the page notes that this outside-click close works when the browser window is 991px wide or narrower as the page loads. In version 5.0.11, that breakpoint matters. If you raise the mobile width above 991px, wider screens close with the toggle button instead of relying on outside clicks.

When should I use a toggle menu instead of an off-canvas or swiper mobile menu?

Toggle fits sites that want a compact header without changing how the menu behaves too much. The page lists Toggle as free, while Swiper and Off Canvas are Pro options. If your goal is simply to hide a long link row behind a hamburger on small screens, Toggle is the lighter choice and keeps setup straightforward.

What do I need if I can't find the Navigation Menu block in WordPress?

The block has to be switched on under Nexter > Blocks before it shows up in the editor. Once it is enabled, reload the editor and add it to your header template with Manual Menu items. Nexter Blocks provides this block as part of its header-building workflow, so if it is missing, it usually means it has not been turned on yet.

Last reviewed: November 29, 2026

Related Docs