Anchor Link Scrolls Too Far With Ubermenu

I’ve read several topics on this forum concerning anchor links that scroll too far from where it should land. While I learn this issue has been address with the latest theme updates, it seems it’s still a problem with Ubermenu.

This thread shows exactly the problem I’m facing;

(https://theme.co/apex/forum/t/anchor-link-not-landing-location-cut-off-by-nav-bar/41944/8)

After placing the recommended jquery code in Customizer, just like all the others the problem is solved. But it has ramification when another plugin uses the “#” as identifier.

So, besides the jquery code can we use the friendlier CSS to resolve the conflict?

Hi @corsaunelec,

Thanks for reaching out.

Ubermenu has no integration like that and it’s different from the scroll function built-in to the theme. Please check this https://sevenspark.com/docs/ubermenu-3/settings/menu-item/scroll-to. And with that, you’ll have to remove that custom code and let the Ubermenu use that setting. And it’s not possible to change “#” to class, anchor is ID based and not CSS.

Thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.