Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Mobile hamburger menu not opening: how to find and fix it

CNV-102Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

The hamburger menu is the three-line icon that opens your navigation on small screens. When it breaks, you tap it and nothing happens, it flickers and closes, or the menu opens but links can't be tapped.

On desktop the full menu is visible, so the site looks fine in your usual checks. The fault only shows at phone widths, which is why it often goes unnoticed for weeks.

Why it costs you leads or sales

On a phone, the menu is often the only route to pricing, contact, booking or shop pages. If it is dead, visitors who don't find what they need on the landing page leave. Paid mobile traffic suffers most, because you pay for every click that arrives.

Where a dead menu breaks the path
  1. Ad clickVisitor lands on mobile
  2. Tap hamburgerNothing opens
  3. Pricing or contact pageNever reached
  4. Form or checkoutNever reached

The visitor lands fine, but the menu is the only way to the next step on mobile.

Mobile visitors reaching the contact pageExample numbers
Mobile visitors reaching the contact page (example)Menu working: 12 %; Menu broken: 3 %059123Menu workingMenu broken%

Example: illustrative numbers showing how a dead menu can cut mobile visits to the contact page.

How to check if your site has it

Test the menu on mobile
  1. Test on a real phone

    Open your homepage and key landing pages on an iPhone and an Android phone. Tap the icon several times and tap links inside the menu.

  2. Use device mode

    In Chrome, press F12, then Ctrl+Shift+M (Cmd+Shift+M on Mac). Pick a phone size, reload, and click the icon.

  3. Read the Console

    Open the Console tab. Red errors such as 'Uncaught TypeError' or 'jQuery is not defined' appearing on load or on click point to a broken script.

  4. Check what sits on top of the icon

    Right-click the icon in device mode and choose Inspect. Check whether another element, such as a cookie banner, chat widget or sticky bar, covers it.

  5. Test in several browsers

    Try Safari on iPhone and Chrome on Android. Some bugs only appear in one.

How to fix it

Common causes and the fix
CauseSignFix
JavaScript error earlier on the pageRed error in Console, menu script never runsFix or remove the failing script or plugin
Another element covers the iconInspect shows a different element at the icon positionLower its z-index or move it
Plugin or theme conflictStarted after an update or new pluginDisable plugins one by one, update or roll back
Menu script deferred, minified or blockedWorks after reload, or only sometimesExclude the menu script from optimisation
Missing or wrong breakpointIcon shows but menu stays hiddenCheck the CSS media query and menu settings
Fix by platform
  1. Find the conflict

    Switch to a default theme such as Twenty Twenty-Four on a staging copy, or disable plugins one at a time, and retest the menu after each change.

  2. Check optimisation settings

    In your caching or speed plugin, exclude jQuery and the theme's menu script from 'delay JavaScript', combine and minify options, then clear the cache.

  3. Check the theme's mobile menu setting

    In Appearance > Customize (or your page builder's header settings), confirm the mobile breakpoint and that a menu is assigned to the mobile location.

Minimal working hamburger togglehtml
<button id="menu-toggle" aria-expanded="false" aria-controls="main-nav">Menu</button>
<nav id="main-nav" hidden>
  <a href="/pricing">Pricing</a>
  <a href="/contact">Contact</a>
</nav>
<script>
  document.addEventListener('DOMContentLoaded', function () {
    var btn = document.getElementById('menu-toggle');
    var nav = document.getElementById('main-nav');
    btn.addEventListener('click', function () {
      var open = btn.getAttribute('aria-expanded') === 'true';
      btn.setAttribute('aria-expanded', String(!open));
      nav.hidden = open;
    });
  });
</script>
Lift the menu button above overlapping elementscss
#menu-toggle {
  position: relative;
  z-index: 1000;
}

How to confirm it's fixed

Confirmation checks
  • The icon opens the menu on a real iPhone and a real Android phone
  • Tapping the icon again closes the menu
  • Every link inside the menu can be tapped and loads the right page
  • The Console shows no red errors on load or on tap
  • It works with the cookie banner and chat widget visible
  • It works after clearing the cache and on a first visit in a private tab

How to prevent it happening again

Menu breaks usually follow a change: a theme or plugin update, a new tag, a new widget or a speed setting. Build a short mobile check into every release.

How a menu break typically unfolds
  1. Day 0

    A plugin update or new script is added

  2. Day 0

    Menu stops opening on phones; desktop looks fine

  3. Days 1-14

    Mobile visitors can't reach other pages and leave

  4. Day 15

    Someone taps the menu on a phone and notices

  5. Day 15

    Script fixed and menu works again

Prevention habits
  • Test on a phone after every theme, plugin, app or tag change
  • Use a staging site for updates where you can
  • Add the mobile menu to your release checklist
  • Keep scripts that run on every page to a minimum
  • Review new overlays, banners and widgets at phone width

How FunnelGuard handles this

FunnelGuard detects this only partly. It can catch a dead hamburger menu when a click on the menu is a step in one of your monitored journeys. In that case, a menu that doesn't respond makes the step fail, you get one alert after a re-check from a second region, with a screenshot and a likely cause.

What it does not do: it doesn't automatically test every menu on every page. If no journey includes a click on the menu, a broken menu won't be flagged by itself. It also doesn't judge things like whether every menu link goes to the right page.

Frequently asked questions

Questions people ask

Why is my hamburger menu not opening on mobile?

The most common causes are a JavaScript error that stops the menu script, another element covering the icon, or a theme or plugin conflict after an update. Open the page in browser device mode and check the Console for red errors, then inspect what sits on top of the icon.

Why does my mobile menu work on desktop but not on phones?

On desktop the full menu is shown, so the hamburger script isn't needed. At phone widths the collapsed menu depends on JavaScript and CSS breakpoints, so errors or overlays that only affect small screens go unnoticed on a computer.

How do I test a hamburger menu on mobile?

Use a real iPhone and Android phone, and also Chrome's device mode (F12, then Ctrl+Shift+M). Tap the icon, tap links inside the menu, and watch the Console for errors.

How do I fix a WordPress mobile menu that won't open?

Disable plugins one at a time or switch to a default theme on a staging copy to find the conflict. Also exclude jQuery and the menu script from any 'delay JavaScript' or minify setting in your caching plugin, then clear the cache.

Can a cookie banner or chat widget block the hamburger menu?

Yes. If a banner, chat bubble or sticky bar sits above the icon, taps hit that element instead. Inspect the icon in device mode and lower the overlay's z-index or move it on mobile.

Can Google Tag Manager break my mobile menu?

It can. A Custom HTML tag with a script error or one that injects an overlay can stop the menu working. Use Preview mode, pause tags one by one, and fix or restrict the one that causes it.

Can FunnelGuard tell me if my hamburger menu is broken?

Only partly. If a click on the menu is a step in one of your monitored journeys, a failure triggers an alert. FunnelGuard doesn't check every menu on every page, so test the rest by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: click step if in journey.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.