Question:
Wix Anchor Links Not Working Product:
Wix Website Editor
What are you trying to achieve:
I want to have a vertical menu where clicking on an item scrolls to an anchor on the page. However, it seems like every item is just pointing to the base page url with no anchor link, so it is just scrolling to the top. I have many anchors on the page and they seem to be configured properly, I’m not sure what is going on.
What have you already tried:
I console logged the target url that the menu items were pointing to and it’s just the base page URL. I tried recreating the anchors/menu items and it didn’t work.
However, I noticed that you console logged the target url, so are you creating a custom menu with onClick() functions? If you’re using the Wix editor, the instructions above have additional information on how to get the specific url for an anchor. However, I have not seen how to do that within EditorX (and I still haven’t tried Wix Studio, so not sure if it’s also missing there).