Home / Fix guides / Mobile and usability

Mobile menu not opening on your phone: how to find the cause and fix it

A hamburger menu usually stops opening because a JavaScript error, a plugin or caching setting, or an invisible layer on top of the icon blocks the tap. Test on a real phone, check for errors, then undo recent changes one at a time.

The hamburger menu is the small icon with three lines that opens your navigation on a phone. When it breaks, visitors tap it and nothing happens, or the menu flickers and closes, or it opens off screen. On a phone that menu is often the only way to reach your services, prices and contact page, so a broken one can make the whole site feel dead.

What people see

The problem shows up in a few ways:

  • The icon is visible but tapping it does nothing.
  • You have to tap two or three times before it opens.
  • The menu opens, but sub-menus will not expand.
  • The menu opens behind the page, behind a header, or below the screen.
  • It works on desktop when you shrink the browser window, but not on a real phone.

That last one matters. Many owners test by resizing a desktop window, see it work, and never learn that it fails on an actual iPhone or Android phone.

Why it matters

Most visitors to small business sites now arrive on a phone. If they cannot open the menu they leave, and you lose enquiries and sales without any error message to warn you. Google also judges the mobile version of your pages, and a site that is hard to navigate on a phone gives people a poor experience. A menu that fails is also a sign that something on the page is throwing errors, which can break other things such as forms or the cart.

How to check your own site for free

  1. Test on a real phone. Open your site in a private or incognito tab, so old cached files and extensions are not involved, and tap the menu. Try both Safari on iPhone and Chrome on Android if you can.
  2. Test on a second device or network. Ask a colleague or friend to try. If it works for them but not you, clear your browser cache first.
  3. Use your desktop browser's device mode. In Chrome, press F12 (or right click and choose Inspect), then the device toolbar icon (or Ctrl+Shift+M). Pick a phone size, reload the page and tap the icon.
  4. Check the Console tab. In the same panel, open Console. Red errors that appear when you load the page or tap the menu often point to the script that is failing. Errors that mention a file from a plugin or theme tell you where to look.
  5. Look for something covering the icon. In device mode, right click the icon and choose Inspect. If the highlighted element is not the menu button, another layer (a cookie banner, a hidden popup, a sticky bar) is sitting on top and catching the tap.

If you have a Mac and an iPhone, Safari can also inspect the phone directly, and Chrome can do the same for Android through chrome://inspect. You do not need this for a first check.

The usual causes

  • A JavaScript error. One broken script can stop the menu script from running. This often follows a plugin, theme or app update.
  • Speed or caching settings. Options such as combine, minify or delay JavaScript can break load order. The menu script then runs before the thing it needs is ready, or never runs.
  • Two plugins or apps fighting. Two scripts both try to control the menu, or one loads a second copy of a library like jQuery.
  • An invisible layer on top. A popup, banner or empty container with a higher stacking order (z-index) swallows the tap.
  • A breakpoint mismatch. The theme switches to the mobile menu at one screen width, but the icon is shown or hidden at another, so some phones or tablets get neither menu.
  • The menu is not assigned. The menu exists but is not set to a location, so the icon has nothing to open.
  • An icon that is too small or too close to other items. The menu works, but taps miss. See tap targets too small.

How to fix it in general

Work from the easiest, most reversible step to the hardest, and test on your phone after each one.

  1. Undo the most recent change. If it broke after an update, new plugin, new app or new tracking code, remove or roll back that first.
  2. Clear every cache. That means your caching plugin or host cache, any CDN such as Cloudflare, and your phone's browser cache.
  3. Turn off script optimisation. Temporarily disable combine, minify and delay or defer JavaScript options in your caching or speed tool, then test. If the menu works, turn the options back on one at a time to find the culprit, and exclude the menu script if the tool allows it.
  4. Test with the default theme or a clean preview. If the menu works there, the problem is in your theme settings or customisations.
  5. Disable plugins or apps one by one. Do this on a staging copy if your host offers one, or at a quiet time. When the menu starts working, you have found the conflict.
  6. Check what sits on top. Look at popups, cookie banners and sticky headers. A header that is too tall can also hide the menu, see sticky header too large.
  7. Ask your developer to read the console error. The exact message and file name usually save them a lot of time.

Platform notes

Menu names and settings differ between versions and themes, so treat these as where to look.

  • WordPress: check Appearance, then Menus (or the Site Editor on block themes) to confirm the menu is assigned to a location. Then look at caching or optimisation plugins such as WP Rocket or Autoptimize for JavaScript options. See the WordPress guide.
  • Shopify: open Online Store, then Themes, and preview your theme without recent apps enabled. Apps that add scripts are common causes. Switching the preview to a default theme such as Dawn helps you compare. See the Shopify guide.
  • Wix and Squarespace: the menu is built in, so the fault is usually custom code, an embedded element overlapping the icon, or a mobile layout edit. Check the mobile editor in Wix, and mobile style and code injection settings in Squarespace.
  • Webflow: check the Navbar element, its menu button, the breakpoint it changes at, and any custom code or interactions attached to it.
  • Elementor: in the Nav Menu widget, look for the dropdown or mobile breakpoint setting and the toggle style. Conflicts with optimisation plugins are common here too.
  • Joomla: check the template's mobile menu options and the menu module's position, then test with other extensions disabled.

How to confirm the fix worked

Open a private tab on a real phone, reload, and open and close the menu several times. Expand a sub-menu, tap a link and check that the next page loads. Do this on both iPhone and Android if possible, in portrait and landscape. Then reopen the console in device mode and confirm there are no new red errors on load or on tap.

How to stop it coming back

  • Test the menu on a real phone after every plugin, theme or app update, and after changing speed settings.
  • Update on a staging copy first if you can, and keep a backup you can restore.
  • Keep the number of plugins, apps and tracking scripts small, and remove ones you no longer use.
  • Avoid stacking popups and banners that cover the top of the page.
  • Add a mobile menu check to a monthly routine.

SiteMonday's week 5 mobile usability test looks at how your site behaves on phones, including problems like this, and reports them in a ranked fix list. Fixing them is up to you or your developer.

When to call a developer

If the console shows errors you do not understand, or the menu only breaks when a particular plugin is on and you need that plugin, hand over the console message and the steps you already tried. That narrows the job to a short fix.

Step by step for your platform

Questions

Why does my menu work on desktop but not on my phone?

Desktop resizing does not reproduce real touch behaviour, and phones may load different scripts or hit an overlapping layer. Always test on a real phone, in a private tab.

Can a caching plugin break my mobile menu?

Yes. Options that combine, minify or delay JavaScript can change load order and stop the menu script from running. Turn them off temporarily, clear the cache and test.

Why do I have to tap the menu icon twice?

Usually another element is catching the first tap, such as a hidden popup or banner, or a script is toggling the menu open and closed at once. Inspect the icon and check the console for errors.

Does a broken mobile menu hurt my Google rankings?

Google looks at the mobile version of your pages, and a menu that blocks navigation makes the site harder to use. It is a usability problem that can cost you visitors and enquiries.

Can I fix this without a developer?

Often yes: undo recent changes, clear caches, turn off script optimisation and disable plugins one by one. If the console shows code errors you cannot trace, a developer can usually fix it quickly.

How often should I test the mobile menu?

After every update to your theme, plugins, apps or speed settings, and at least once a month. It takes about a minute on a real phone.

Related problems