How to create a unique anchor link on Wix Studio

This is a feature that a lot of people have wanted from the classic Editor, but for whatever reason, it has not been added yet. If it could be worked into this new editor, all sites could become much more versatile.

Essentially we need the ability to generate iterations of the URL which can link directly to an anchor point/section on a page. As with traditionally built sites, the /#[id] method should still work. It just needs a button added on the toolbar where the editor can generate and track that link.

For anyone that desperately needs this function for now, there is a workaround you can use:

  • Publish your page

  • In a browser, go to the page that contains the section you need

  • Inspect the page and locate the section that you want in the code, you should see each section listed one after another.

  • Open up the section you need, and locate the first div that has an id tag. It will look something like this:

<div id="comp-k9n6tp65bg" class="style-k9n6tpdgbg"></div>
  • Copy the id tag in between the quote marks. In this case it would be: comp-k9n6tp65bg

  • You will use this to create your new URL, by adding that tag after /# at the end of your URL. So in this case it would now look like this: www.yoursitename.com/#comp-k9n6tp65bg

  • There you have it, this link will now take you to that exact section of the page.

  • Bonus: if you don’t like what it looks like, use Bit.ly or similar to shorten it.

5 Likes

@admin86183 Agreed. I’ve had many times I could have used the ability to direct a user to the middle, or even the bottom of a particular page, rather than the top. In A/B testing I’ve found if the outside link only goes to the top of a page, rather than the section where their desired information is located, it’s almost always a bounce. This is because they now need to manually search down the page, or may feel they’ve been missdirected to the wrong page.

Thank you for that extra tip on how to add it to tbe code!

oh my god, THANK YOU. This helped me figure out a workaround for this issue which I’m having 4 years later.