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.
- Crawler loads pageHTML arrives with an empty menu panel
- Hover neededLinks are built only on mouseover
- Links not seenNo anchor tags to follow
- 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.
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
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.
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).
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.
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.
<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>.panel { display: none; }
.has-panel:hover .panel,
.has-panel:focus-within .panel { display: block; }Use native menus
Build the menu under Appearance > Menus (or Appearance > Editor > Navigation in block themes) so the theme outputs real <a> links.
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.
Use a linklist-driven menu
Manage links in Content > Menus and render them in the theme with Liquid so they are in the HTML.
Check apps
If a mega menu app injects links with JavaScript after load, compare View Source with the live menu. Pick a theme section or app that outputs the links server-side.
Use the Navbar and Dropdown elements
Webflow dropdowns keep their link elements in the HTML. Use Link elements with real URLs, not buttons or divs with click interactions.
Avoid building the menu in custom code
If you add a script to inject links, move them to the Designer as regular Link elements.
Use the built-in menu
Add links in the site menu through the Editor (Menus & Pages) rather than custom-coded menus, then check View Source.
Use folders in the navigation
Under Pages, use folders and the template's dropdown. Check View Source to confirm each page is an <a href>. If your template lacks a suitable dropdown, add a footer link block as a backup.
Render links server-side
Output the full menu in the HTML template or through server-side rendering in your framework (for example, Next.js or Nuxt).
Replace fake links
Change div or button elements with click handlers into <a href="/path/"> and keep the handler only for animation.
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
- 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
- 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.
Related issues
- SEO-116Main navigation missing key category or service pagesFix guide
- SEO-114Orphan money pages with no internal linksFix guide
- SEO-115Money pages more than 3-4 clicks from the home pageFix guide
- SEO-126Important pages only reachable via site search or formsFix guide
- SEO-118Too many links on a page diluting importanceFix guide
- SEO-128Hub/pillar pages missing for main topicsFix guide