Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Hover-only menus not working on mobile: how to fix touch

CNV-393Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A hover-only menu shows its sub-links only when a mouse pointer sits over it. It is usually built with the CSS :hover rule or JavaScript mouseenter and mouseover events. Touch screens have no pointer to rest on, so the menu may never open, may open and close at once, or may need an odd double tap.

Where a hover-only menu breaks the path
  1. Ad clickVisitor lands on the page on a phone
  2. Tap menuSub-links need hover and never appear
  3. Reach service pageLink is out of reach
  4. Form or checkoutNever started

The visitor lands fine, but cannot open the menu that leads to the funnel.

Visitors who reach the service pageExample numbers
Visitors who reach the service page (example)Desktop (hover works): 42 %; Mobile before fix: 18 %; Mobile after fix: 38 %01632421838Desktop (hover works)Mobile before fixMobile after fix%

Example: illustrative numbers showing how a menu that fails on touch can lower the share of mobile visitors reaching a key page.

Test your menus for touch
  1. Use a real phone and tablet

    Open your site and tap every menu item that has sub-links. Do the links appear on the first tap, and do they stay open?

  2. Try device mode in Chrome

    Open DevTools, click the device toolbar icon and pick a phone or tablet. This simulates touch, but real devices are still more reliable, especially iPads.

  3. Look for hover rules in your CSS

    Search your theme or stylesheet for :hover rules that change display, visibility or opacity on a submenu.

  4. Check for mouse-only scripts

    Search your JavaScript for mouseenter, mouseover and mouseleave handlers that open menus with no click or touch equivalent.

  5. Test large tablets and touch laptops

    Some of them report a hover-capable pointer, so a menu may behave differently from a phone.

A tap that finds nothing to open

The visitor taps the menu, but the sub-links stay hidden.

Fix by platform
  1. Check the theme or menu plugin settings

    Many themes and mega menu plugins have an option such as submenu trigger: hover or click. Choose click (or hover on desktop and click on mobile).

  2. Update the theme and plugins

    Touch handling bugs are often fixed in newer versions. Update on a staging copy first.

  3. Use the mobile menu

    Make sure the mobile menu breakpoint covers tablets, so they get the tap-friendly layout.

Tap-friendly dropdown (HTML + JavaScript)html
<nav>
  <button class="menu-toggle" aria-expanded="false" aria-controls="services-menu">Services</button>
  <ul id="services-menu" hidden>
    <li><a href="/pricing">Pricing</a></li>
    <li><a href="/book">Book a call</a></li>
  </ul>
</nav>
<script>
  const btn = document.querySelector('.menu-toggle');
  const menu = document.getElementById('services-menu');
  btn.addEventListener('click', () => {
    const open = btn.getAttribute('aria-expanded') === 'true';
    btn.setAttribute('aria-expanded', String(!open));
    menu.hidden = open;
  });
  document.addEventListener('click', (e) => {
    if (!btn.parentElement.contains(e.target)) {
      btn.setAttribute('aria-expanded', 'false');
      menu.hidden = true;
    }
  });
  document.addEventListener('keydown', (e) => {
    if (e.key === 'Escape') {
      btn.setAttribute('aria-expanded', 'false');
      menu.hidden = true;
    }
  });
</script>
Keep hover styles for mouse devices onlycss
@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover > ul { display: block; }
}
.has-submenu.is-open > ul { display: block; }
Menu behaviour

Hover only

  • Sub-links appear only with a mouse pointer
  • Tapping does nothing or needs a double tap
  • Key pages are out of reach on phones

Tap and hover

  • A button toggles the menu on tap or click
  • Hover remains as a bonus on desktop
  • Menu closes on outside tap or Escape
Confirmation checks
  • Every menu item with sub-links opens on a single tap on a real phone
  • The same works on an iPad or Android tablet, in portrait and landscape
  • Tapping outside the menu closes it
  • You can reach the pricing, booking or checkout page from the menu in under four taps
  • The menu still works with a mouse and the keyboard (Tab, Enter, Escape)
  • Key CTAs are not hidden behind hover overlays
Habits that help
  • Test the header on a real phone and tablet after every theme, plugin or design change
  • Never put the only route to a funnel page behind hover
  • Wrap hover-only styles in a (hover: hover) media query
  • Run a scheduled journey check on mobile so you hear about breakage early

Questions people ask

Why is my dropdown menu not working on mobile?

Most likely it opens on CSS :hover or a mouseenter script, and touch screens have no hover. Switch the trigger to click or tap, for example a button that toggles aria-expanded, and test on a real phone.

Why do I have to tap twice to open a menu on my phone?

Mobile browsers often emulate hover on the first tap and only follow the link on the second. Replace the hover-based logic with a click handler, or wrap hover styles in @media (hover: hover) so touch devices skip them.

How do I make a hover menu work on touch devices?

Add a click or tap handler that toggles an open class or the hidden attribute, and keep hover as an extra for mouse users. Close the menu when the visitor taps outside it or presses Escape.

Does a hover-only menu hurt conversions?

It can. If visitors on phones and tablets cannot open the menu, they cannot reach pages like pricing, booking or checkout, so fewer of them start your funnel.

Do Chrome DevTools device mode results prove my menu works on touch?

Not fully. Device mode simulates touch and screen size, but real iPhones, iPads and Android devices can behave differently. Always confirm on at least one real phone and one tablet.

Can FunnelGuard detect a menu that does not work on touch?

Only partly. Its mobile run will fail a journey step if the broken menu stops the robot reaching a link or button it needs, but it does not audit every menu or test every device model, so check the rest by hand.

What is the CSS media query for hover-capable devices?

Use @media (hover: hover) and (pointer: fine). Styles inside it apply only where the main input can hover, such as a mouse, so touch devices use your click-based menu instead.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: mobile run.

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.