# Set up an anchor in Wix Studio

**URL:** <https://forum.wixstudio.com/t/set-up-an-anchor-in-wix-studio/51901>\
**Category:** Ask the community\
**Tags:** wix-studio, question, design\
**Created:** [August 26, 2023, 6:15pm UTC](https://forum.wixstudio.com/t/set-up-an-anchor-in-wix-studio/51901 "2023-08-26T18:15:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan\_Billyeald](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alan_billyeald/32/81819_2.png) [@Alan\_Billyeald](https://forum.wixstudio.com/u/Alan_Billyeald)\
**Post date:** [August 26, 2023, 6:15pm UTC](https://forum.wixstudio.com/t/set-up-an-anchor-in-wix-studio/51901/1 "2023-08-26T18:15:53Z")

</div>

Greetings. I am havin a blackout and cannot figure out how to anchor the “About our company” section to “About” page in the menu. See [https://albilly.wixstudio.io/alan-test-wix-studio](https://albilly.wixstudio.io/alan-test-wix-studio). Any advice is appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [August 29, 2023, 5:09pm UTC](https://forum.wixstudio.com/t/set-up-an-anchor-in-wix-studio/51901/2 "2023-08-29T17:09:43Z")

</div>

I don’t think this is possible yet, although, I do know of a workaround using Velo, and it’s pretty straight forward!

This is all the code you’ll need, and you won’t need to change it in any way.

```javascript
import wixLocationFrontend from 'wix-location-frontend';

$w.onReady(function () {
	const anchor = wixLocationFrontend.url.split('#')[1];
	anchor && $w('#'+ anchor).scrollTo();
})

```

In Dev Mode, add this to the `masterPage.js` file. (I believe it’s called “Global” in Studio)

Then, you can then share URLs like this -  
`https://www.example.com/#veloID`

To scroll to a specific part of the page, replace #veloID at the end of the URL with the ID of any element on the page.

The ID can be found when DevMode is on, and selecting an element.

So, in this specific case, whenever they need to share a URL to a specific section, they would just add #sectionID to the end of the URL

 ![Screenshot 2023-08-28 at 23.04.11](https://us1.discourse-cdn.com/wix/original/3X/2/7/278dc37076d0cc9f9b9d7a51be1cce492c72d307.png)

---

<div class="post-metadata">

**Author:** ![Dicky\_Souray](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dicky_souray/32/83983_2.png) [@Dicky\_Souray](https://forum.wixstudio.com/u/Dicky_Souray)\
**Post date:** [October 24, 2024, 3:08pm UTC](https://forum.wixstudio.com/t/set-up-an-anchor-in-wix-studio/51901/3 "2024-10-24T15:08:38Z")

</div>

Brilliant, worked straight away, thank you 🙂
