Using Anchor Links in Your Articles
- Last updated on February 20, 2019 at 3:51 AM
To assist your users in easily navigating to relevant parts of your article, try adding anchor links. After publishing your changes, these links will work across the Knowledge Base and the Assistant.
How to Add Anchor Links
- Highlight the text that you want to add the link to
- Select "Insert Link" from the Editing toolbar
- In the URL section, make up a unique identifying name for the text that you want to link to and prefix it with a hash. E.g "#deleting-categories"
- Select the Code tab
- Find the text that you want to attach the anchor to and within its parent tag, add id="YOUR-UNIQUE-ID" before the closing angle bracket. Do not include the hash.
- To see your links in action, publish your changes
How to Link to Your Anchor Link from Another Article
If you have created an anchor link, you can also link to it from another article.
- Highlight the word that you want to link from and create a link to your chosen article
- Select the Code tab
- Look for the link that you've just created; e.g. it might look something like
- Append the unique anchor ID from that article to the data-elevio-article number, again prefixed with a hash. E.g. data-elevio-article="81547#deleting-categories"
- To see your links in action, publish your changes