Elements and Widgets

Anchor links

7min

With anchor links you can navigate through the page. 

Anchor links can be used when customizing actions for:

  • menu items to navigate through page sections;
  • buttons;
  • text links;
  • block links.

Adding anchor links to menu items

1. Select the menu and open Settings in the right panel.

Document image


2. Open the menu settings by clicking the icon to the left of its name. 

Document image


3. Open the action settings for the menu item.

Document image


3. Select the Anchor navigation action.

Document image


4. Click the Select Element button to configure where to navigate when clicking the menu item.

Document image


Next, select the desired element on the canvas or in layers and confirm your choice.

Document image


Keep in mind that the page will scroll to the top of the selected element. Therefore, it is better to select the section as a target, not the content inside it. You can also add back margin to the section if it has not been set up before. Then after scrolling, you will have free space at the top of the page.

Document image




5. Add smooth transition. To do this, enter the Scroll Speed value in milliseconds. For example, 400ms. 

Document image


This setting will be the same for anchor links in all menu items.

6. Set up anchor links for the remaining menu items by repeating steps 2–4.

7. Publish the page and check the navigation to each menu item.

You can check the anchor links only with the published project. Navigation is not available in preview mode.

Adding an anchor link to the button

1. Select the button, go to the Settings and add the Action by clicking "+".

Document image


2. Select "On click" in the Action Trigger. Select “Anchor navigation” in the Action.

Document image


3. Select the element that will be navigated to when clicking the button. For example, the section with a contact form.

Document image


4. Add smooth transition by adjusting the Scroll Speed.

Document image


5. Publish the project and check how navigation works.



Anchor links for text link and block link are configured in the same way as for a button. You can choose custom scroll speed for each element.