Skip to main content

How to add an anchor to a page

anchor, add anchor to page, anchor element, anchor URL, automatically scroll to page section, text anchor hyperlink, button anchor link

Eduardo Stewart avatar
Written by Eduardo Stewart
Updated this week

Anchors allow you to create hyperlinks that direct users to a specific section of the same page or to any element identified by a URL fragment.

How to Set an Anchor

  1. Open the page editor for the page you wish to edit

  2. Click the page element you wish to anchor

  3. Open the Advanced tab, then locate the Attributes section

  4. Enter your anchor name (e.g., anchorcommand)

In this example, we've added an anchor called anchorcommand to a text element.

Using the Anchor

Once the anchor is set, you can link to it using a button element or a text hyperlink anywhere on the same page.

For example, if your page URL is:

https://myaccountid.learnybox.com/page1/

And you've set an anchor called anchorcommand, you can configure a button or link to point to #anchorcommand. When clicked, it will automatically scroll the visitor to the anchored element and the URL will update like this:

https://myaccountid.learnybox.com/page1/#anchorcommand

You don’t need to manually modify the URL — the page will handle it for you when the element is clicked.

This is especially useful for long pages, allowing visitors to quickly jump to key sections.

Did this answer your question?