Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting

Elementor Menu Anchor Not Working: Causes and How to Fix It

Elementor Menu Anchor Not Working: Causes and How to Fix It

Short answer

An Elementor menu anchor usually fails because the anchor ID and link do not match exactly, the link only works on one page, or a duplicate ID exists. A sticky header, cached pages or delayed JavaScript can also block the scroll.

Key takeaways

  • Anchor IDs are case-sensitive and must match the link exactly.
  • Type the ID without a hash in the widget; add the hash in the link.
  • Use the full page URL plus the hash for menus on other pages.
  • Add a scroll offset when a sticky header hides the section.
  • Clear caches and check JavaScript delay settings if clicks do nothing.

Why is my Elementor menu anchor not working?

An Elementor menu anchor usually fails because the anchor ID and the menu link do not match exactly, the link points to the wrong page, a sticky header covers the section, or a script or cache problem breaks the scroll.

The Menu Anchor widget is simple. You give it an ID, and any link ending in a hash plus that ID jumps to it. When the jump fails, one link in that chain is broken.

Elementor documents the basics in its Menu Anchor widget help article. This guide goes through each common cause and the fix, starting with the quickest checks.

How should an Elementor menu anchor be set up?

Place a Menu Anchor widget above the target section with an ID such as services, then point a menu or button link to #services.

Drag the Menu Anchor widget into the container just above the section you want to scroll to. In its settings, type the ID without the hash sign.

Then go to Appearance > Menus, or the menu widget in your header, and add a custom link. Use the hash form on the same page, or the full URL with the hash when linking from other pages.

Our guide on how to link a page to a menu in WordPress covers the menu side in more detail.

Anchor IDs are case-sensitive and must match the link character for character, so Services, services and services-section are three different targets.

This is the most common cause by far. Copy the ID from the widget and paste it into the link instead of retyping it.

Follow these ID rules to avoid trouble:

  • Use lowercase letters, numbers and hyphens only.
  • Do not use spaces; Elementor may change or strip them.
  • Do not start the ID with a number.
  • Do not include the hash sign inside the widget field.
  • Make each ID unique on the page.

MDN's page on the HTML id attribute explains why IDs must be unique and why spaces cause problems.

Are there duplicate IDs on the page?

If two elements share the same ID, the browser jumps to the first one it finds, which can be a hidden element, a header or a different section altogether.

Duplicates often come from copied sections. When you duplicate a container that includes a Menu Anchor, the copy keeps the same ID.

They can also come from the CSS ID field in a container's Advanced tab. If you set an ID there and in a Menu Anchor widget, you now have two targets.

To check, right-click the page, choose Inspect, and search the HTML for your ID. There should be exactly one match.

A link written as #about only works on the page that contains the anchor, so from any other page it tries to find the section on the current page and does nothing.

For menus that appear site-wide, use the full address, such as your home page URL followed by #about. That way the link loads the home page first and then jumps.

Watch out for mismatched URLs. If your site uses https and www but the menu link uses http without www, the browser may reload the page through a redirect and lose the smooth scroll.

Link formatWorks fromTypical use
#aboutSame page onlyOne-page sites, in-page buttons
/#aboutAny page on the siteHeader menus on home page sections
Full URL + #aboutAny page, any contextEmails, other sites, multi-page menus

Is a sticky header covering the section?

When the page jumps but the heading sits hidden under the header, the anchor is working; the sticky header is simply covering the top of the section.

Elementor has a scroll offset setting for this. Look in Site Settings, often under a layout or general section, for an anchor offset value, or check the Menu Anchor widget help page for your version.

Set the offset close to your header's height in pixels. Then test on mobile, where the header may be shorter or taller.

You can also handle this with CSS. The scroll-margin-top property on MDN adds space above the target when the browser scrolls to it.

Our guide to Elementor navigation settings covers sticky headers and menu layout options.

Could caching or optimization plugins be breaking the scroll?

Yes. Plugins that delay, defer or combine JavaScript can stop Elementor's smooth scroll script from running, and stale caches can serve an old page without your new anchor.

Clear every layer of cache first: your caching plugin, your host's server cache, and any CDN. Then test in a private browser window.

If that does not help, turn off Delay JavaScript or similar options in your optimization plugin. Test again, and if the anchor works, exclude Elementor's frontend scripts from delay.

You can find common exclusion advice in our guide to speeding up Elementor without breaking features.

Could a plugin or theme conflict be the cause?

A plugin or theme that adds its own smooth scroll, one-page navigation or menu script can fight with Elementor, so the click either does nothing or jumps without scrolling.

Open the browser console with F12 and click the menu item. Red errors point to a script problem.

To find the culprit, follow a standard conflict test:

  1. Switch to a staging copy of your site if you have one.
  2. Deactivate all plugins except Elementor and Elementor Pro.
  3. Test the anchor link.
  4. Reactivate plugins one at a time, testing after each.
  5. If needed, switch to a default theme like Hello Elementor and test again.

The WordPress handbook's page on troubleshooting with a health check describes the same plugin-by-plugin approach.

Does the anchor work on desktop but not on mobile?

When anchors fail only on mobile, the usual causes are a mobile menu that does not close after the click, a different mobile header height, or an anchor placed inside a section hidden on mobile.

Check the responsive visibility settings in the Advanced tab of the container holding your Menu Anchor. If that container is hidden on mobile, the target does not exist there.

In the Nav Menu widget, some versions offer an option to close the mobile dropdown on click. Without it, the menu can stay open and cover the section.

Test on a real phone as well as Elementor's responsive preview. The preview does not always copy touch behavior perfectly.

Are you linking from a button, image or text?

Any Elementor link field accepts the anchor format, but buttons, images and text links must use the same hash ID, and links set to open in a new tab will load a fresh page instead of scrolling.

Open the link options cog next to the URL field. Turn off Open in new window for in-page anchors.

Make sure there is no extra space before or after the hash. Pasted links sometimes carry hidden spaces.

What is the quickest checklist to fix a menu anchor?

Work through the fixes in order of how often they cause the problem: match the ID, remove duplicates, fix the link format, set an offset, clear caches, then test for conflicts.

SymptomLikely causeFix
Nothing happens on clickID mismatch or wrong pageCopy ID exactly, use full URL
Jumps to wrong spotDuplicate IDRemove extra ID
Section hidden under headerSticky headerAdd scroll offset
Works logged in, not for visitorsCacheClear all caches
Jumps but no smooth scrollDelayed or conflicting JSExclude Elementor scripts
Fails on phones onlyHidden section or open menuCheck visibility and menu settings

If the editor itself misbehaves while you make these changes, see our guide on how to fix the Elementor editor not loading.

For a refresher on how widgets and containers fit together, read what Elementor does.

Frequently asked questions

Why does my Elementor anchor link scroll to the wrong place?

Usually because two elements on the page share the same ID, or a sticky header covers the top of the section. Search the page HTML for the ID to remove duplicates, then add a scroll offset that matches your header height so the heading stays visible.

Should I add the hash sign in the Menu Anchor ID field?

No. Type only the name, such as contact, in the widget field. Add the hash sign in the link instead, so the menu or button points to #contact on the same page, or to the page address followed by #contact from other pages.

Why does my anchor work on the home page but not from other pages?

A link that is only a hash looks for the section on the current page. From other pages it finds nothing. Use the full home page address followed by the hash and ID, so the browser loads the right page and then jumps to the section.

Can a caching plugin break Elementor anchor links?

Yes. A stale cache can serve a version of the page without your anchor, and options that delay or combine JavaScript can stop the scroll script from running. Clear all caches, then exclude Elementor scripts from delay settings if needed.

Can I use the container CSS ID instead of the Menu Anchor widget?

Yes. Any element with an ID can be an anchor target, so you can set the CSS ID in a container's Advanced tab. Just do not use both methods with the same name, or you will create duplicate IDs.

Sources

  1. Menu Anchor widget Elementor
  2. id (HTML global attribute) MDN Web Docs
  3. scroll-margin-top MDN Web Docs
  4. FAQ Troubleshooting WordPress.org Documentation
  5. How to Link Menu to Sections in Elementor Pages Themeisle Docs

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.