Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Mega menu links not crawlable: how to find and fix it

SEO-125Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A mega menu is a large dropdown panel that lists many categories, services or products at once. Some are built so the panel contents are not in the page HTML at all. A script waits for a mouseover or click, then fetches or builds the links and inserts them.

Search crawlers read the HTML and may run JavaScript, but they do not hover, click or tab through your menu. If the links only appear after one of those events, they are never found. Links made from <div onclick> or <span data-href> instead of <a href> have the same problem: they look like links to a person but are not links to a crawler.

How a hover-only menu hides pages
  1. Crawler loads pageHTML arrives with an empty menu panel
  2. Hover neededLinks are built only on mouseover
  3. Links not seenNo anchor tags to follow
  4. Category pagesWeaker internal signals, slower discovery

The crawler loads the page but never triggers the hover, so the menu pages are not discovered through the menu.

Why it costs you leads or sales

Your main menu is usually the strongest set of internal links on the site, because it appears on every page. If the category, service and product pages it points to are not linked in the crawlable HTML, search engines may find them late, treat them as less important, or miss them if no other page links to them.

Pages that are hard to find in search bring fewer visitors, and those are often your money pages. AI assistants that fetch pages without running scripts can also miss what your site offers. Impact is medium: if the same pages are linked elsewhere in plain HTML, the damage is smaller.

Menu pages found by a crawlerExample numbers
Menu pages found by a crawler (example)Hover-only menu: 6 pages; Links in HTML: 40 pages01531640Hover-only menuLinks in HTMLpages

Example: a site with 40 menu pages. A hover-only menu exposes few; a plain HTML menu exposes all.

How to check if your site has it

Three quick checks
  1. View the page source

    Open your home page, right-click and choose View Page Source (not Inspect). Search for the name of a page that is in your mega menu. If you cannot find it inside an <a href> tag, the link is not in the raw HTML.

  2. Compare with the rendered DOM

    In Chrome DevTools, open Elements and hover the menu. If anchor tags appear only after hovering, they are created by script. Also check that each item is an <a> with a real href, not a div or a href of # or javascript:void(0).

  3. Test with Google tools

    In Google Search Console, use URL Inspection on the home page, then View Crawled Page and check the HTML for your menu links. Or crawl the site with Screaming Frog with JavaScript rendering off, then on, and compare the internal links found.

  4. Try it without JavaScript

    Disable JavaScript in DevTools (Command menu, then Disable JavaScript) and reload. If the menu links vanish, crawlers that do not run scripts will not see them.

How to fix it

The goal is simple: the links exist in the HTML when the page loads. Hover and click effects should only change visibility. Here is the pattern to aim for.

Crawlable mega menu: links always in the HTMLhtml
<nav aria-label="Main">
  <ul>
    <li class="has-panel">
      <a href="/services/">Services</a>
      <div class="panel">
        <a href="/services/seo/">SEO</a>
        <a href="/services/web-design/">Web design</a>
      </div>
    </li>
  </ul>
</nav>
Show the panel with CSS, not by building it in JavaScriptcss
.panel { display: none; }
.has-panel:hover .panel,
.has-panel:focus-within .panel { display: block; }
Fix by platform
  1. Use native menus

    Build the menu under Appearance > Menus (or Appearance > Editor > Navigation in block themes) so the theme outputs real <a> links.

  2. Check your mega menu plugin

    Look for a setting that loads submenu content on page load, not by AJAX on hover. If it only offers hover loading, switch plugin or theme.

Menu markup

Not crawlable

  • Panel is empty until mouseover
  • Items are <div onclick=...>
  • Links use href="#"
  • View Source shows no menu pages

Crawlable

  • All links present at page load
  • Items are <a href="/real-url/">
  • CSS shows and hides the panel
  • View Source lists every menu page

How to confirm it's fixed

Confirmation checks
  • View Page Source shows every mega menu link as <a href> with a real URL
  • With JavaScript disabled, the menu links are still in the page (even if hidden)
  • A crawl with JavaScript rendering off finds the same menu URLs as with it on
  • Search Console URL Inspection shows the menu links in the crawled HTML
  • Each menu page now reports internal links pointing to it from the home page

How to prevent it happening again

Habits that keep the menu crawlable
  • Add a View Source check to the checklist for any theme, plugin or app change that touches navigation
  • Ask developers to use <a href> for every navigational item
  • Run a monthly crawl with JavaScript rendering off and compare link counts to the last one
  • Link key pages from body content and the footer too, so no page depends on one menu
  • Re-test after redesigns and mega menu app updates

How FunnelGuard handles this

FunnelGuard does not check this yet. Whether menu links are in the raw HTML is a possible future check, but it is not something the product does today.

What FunnelGuard does cover nearby: a robot visitor runs your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and checks each step. If a broken menu script stops a page or button from working, a journey that depends on it can fail and you get a re-checked alert with a screenshot. That tells you a journey is broken, not that crawlers cannot see your menu links.

To watch for this issue, use the manual checks above: View Source after each change, plus a scheduled crawl with JavaScript rendering off in a crawler such as Screaming Frog, and Google Search Console URL Inspection. A free read-only website audit is also available from FunnelGuard, but it does not replace these checks for this issue.

Questions people ask

Does Google crawl links in a mega menu?

Yes, if they are real <a href> links present in the HTML or in the rendered page after load. Google does not hover or click, so links created only after those events are usually not found.

Why are my menu links not showing in View Source?

They are probably inserted by JavaScript after the page loads or after a hover. View Source shows the original HTML, so scripted links are missing. Compare it with the Elements panel in DevTools to confirm.

Are links hidden with display:none still crawlable?

Generally yes. If the anchor tags are in the HTML and only hidden with CSS until hover, they are still discovered. The problem is links that do not exist in the page until a script creates them.

How do I make a mega menu SEO friendly?

Put every item in the HTML as an <a href> with a real URL, use descriptive link text, and show the panel with CSS or a small script on hover and focus. Keep the menu available without needing a click to load content.

Can a div with an onclick count as a link for SEO?

No. Crawlers follow <a> elements with an href attribute. A div or button with a click handler that changes the page location is not a reliable link, so use a real anchor instead.

How can I test my menu without JavaScript?

In Chrome DevTools open the Command menu, run Disable JavaScript, and reload the page. Then look at the source or crawl with JavaScript rendering off. Missing menu links mean they depend on scripts.

Does FunnelGuard check if my mega menu links are crawlable?

No, not yet. It is a possible future check. FunnelGuard runs your customer journeys and can show when a broken page or button stops one, but for crawlability use View Source and a crawler.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.