Anchor tags are IDs that are assigned to sections, which are used to link users to a specific part of a page. In Unstack, these can be assigned to sections and are used when linking users via buttons or text.
To set this up in your account...
- Identify which section you want scrolling into view when a link is clicked.
- Once identified, click the CSS Selector option from the section toolbar and define an ID. This ID should be a text string. Do not enter a "#" in this field.
- Find the button you want to use, or the text you want to hyperlink and enter the ID you defined in the previous step as the URL, prefaced by a "#". Therefore if the ID you defined above was heroSection, the button's link would be #heroSection.
- Anchor links are case-sensitive, so what you enter into the text field must be used following the pound sign in the exact same case format.
It's possible to use anchor links to link to a section on another page. To do this you'd just need to add the full URL before the # when adding the linking the button. If this is your homepage, you'll need to add a forward slash before adding the pound sign and section name.
Please sign in to leave a comment.