Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Hamburger menu not opening on mobile: how to find and fix it

PRF-168High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

The hamburger menu is the three-line icon that shows the site navigation on small screens. Tapping it should slide or drop down the menu links. When it does not open, the tap does nothing, the menu flashes and closes, or the icon is not even clickable.

The menu is normally opened by a small piece of JavaScript that toggles a class or attribute on the nav. If that script fails to load, crashes earlier in the page, or the button cannot receive the tap, the menu stays shut.

Why it costs you leads or sales

On a phone, the menu is often the only route to your pricing, product categories, contact page or booking page. If it is dead, visitors who did not land on the right page cannot move on. They leave, and you still pay for the ad click that brought them.

Where the visitor gets stuck
  1. Ad clickVisitor lands on the home page on a phone
  2. Tap hamburgerMenu does not open
  3. Find services pageNo way to navigate
  4. Contact formNever reached

The visitor lands on a mobile page, taps the menu and goes no further.

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

Example: illustrative numbers showing how a dead menu can cut the share of mobile visitors who reach a key page.

How to check if your site has it

Test the menu in a few minutes
  1. Test on a real phone

    Open your site on an iPhone and an Android phone. Tap the icon several times, on the home page and on a deep page such as a product or landing page.

  2. Use browser device mode

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

  3. Read the console

    Open the Console tab and reload. Red errors such as 'Uncaught TypeError' or 'jQuery is not defined' often explain a dead menu.

  4. Check what receives the tap

    In the Elements panel, right-click the icon and choose Inspect. If a different element (a banner, popup or empty div) is highlighted when you hover over the icon area, it is covering the button.

  5. Test with a clean state

    Try a private window with no extensions, and on mobile data as well as Wi-Fi, in case a blocked script is involved.

Common causes and how to spot them
CauseSignTypical fix
JavaScript error earlier on the pageRed error in console, other scripts also deadFix or remove the failing script
Script blocked, minified or deferred wronglyMenu works after a delay or only after a second tapExclude the menu script from optimisation
Element covering the buttonInspect highlights a different elementFix z-index or pointer-events
Plugin or theme conflictStarted after an updateDisable or roll back the change
Missing breakpointIcon shows but menu is built for desktop widthsCheck the theme's mobile breakpoint setting

How to fix it

A covered button swallows the tap

The tap lands on an invisible layer above the icon, so the menu never receives it.

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 by one, testing the menu each time.

  2. Check optimisation settings

    In caching or speed plugins, turn off JavaScript minify, combine and delay options, then retest. If the menu works, exclude the theme's menu script.

  3. Check the theme's mobile settings

    In Appearance > Customize (or your page builder's header settings), confirm the mobile menu breakpoint matches the width you are testing.

Accessible menu toggle that waits for the DOMjavascript
document.addEventListener('DOMContentLoaded', function () {
  var btn = document.querySelector('.menu-toggle');
  var nav = document.querySelector('#site-nav');
  if (!btn || !nav) return;
  btn.addEventListener('click', function () {
    var open = nav.classList.toggle('is-open');
    btn.setAttribute('aria-expanded', open ? 'true' : 'false');
  });
});
Keep the button above decorative layerscss
.menu-toggle {
  position: relative;
  z-index: 1001;
}
.hero-overlay {
  pointer-events: none;
}

How to confirm it's fixed

Confirmation checks
  • Menu opens on the first tap on an iPhone and an Android phone
  • Menu opens on the home page and on a deep landing page
  • Every menu link goes to the right page
  • No red errors in the console after reload
  • Menu also opens in portrait and landscape
  • Menu still works with caching and optimisation turned back on
Menu before and after the fix

Before

  • Icon visible but tap does nothing
  • Console shows a script error
  • Visitors stuck on the landing page

After

  • Menu opens on the first tap
  • Console is clean
  • Visitors reach pricing and contact pages

How to prevent it happening again

Prevention habits
  • Test the mobile menu after every theme, plugin or app update
  • Use a staging site for changes to headers and scripts
  • Exclude the menu script from minify and delay settings once you know which file it is
  • Add new tracking or chat scripts one at a time and retest
  • Keep a short mobile test routine: menu, form, checkout

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks the menu only if opening the menu is part of a journey you have set up. For example, if your journey taps the hamburger and then clicks a link to the contact page, the robot visitor fails that step when the menu does not open. FunnelGuard re-checks the failure from a second region, then sends one alert with a screenshot and a likely cause.

Questions people ask

Why is my hamburger menu not opening on mobile?

The usual causes are a JavaScript error that stops the menu script, an invisible element covering the icon, or a plugin or theme conflict. Check the browser console for red errors and inspect what element receives the tap.

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

Desktop browsers often show a full menu without the hamburger script. On phones, the toggle script and its breakpoint are used, so any script error, covered button or wrong breakpoint shows up only there.

How do I test a hamburger menu on mobile?

Open the site on a real iPhone and Android phone and tap the icon on several pages. You can also use Chrome DevTools device mode (Ctrl+Shift+M or Cmd+Shift+M) and watch the Console for errors.

Why does my menu need two taps to open?

This is often caused by a hover style or a second script toggling the menu closed, or by a delayed script that loads after the first tap. Disable JavaScript delay or combine options and test for duplicate menu scripts.

Can a caching or speed plugin break my mobile menu?

Yes. Minifying, combining or delaying JavaScript can change the load order and stop the menu script from running. Turn those options off to test, then exclude the menu script.

Can a cookie banner or chat widget stop the menu from opening?

Yes, if it sits over the icon area it can take the tap. Inspect the icon and see which element is on top, then move or resize that widget.

Will FunnelGuard alert me if my hamburger menu stops opening?

Only if opening the menu is part of a journey you have set up. FunnelGuard fails that step, re-checks from a second region and sends one alert with a screenshot. It does not scan menus outside your journeys.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: only 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.