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.

  1. How to Add Anchor Links
  2. How to Link to Another Article's Anchor Links

How to Add Anchor Links

  1. Highlight the text that you want to add the link to
  2. Select "Insert Link" from the Editing toolbar  
  3. 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"
  4. Select the Code tab
  5. 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.
     
  6. 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. 

  1. Highlight the word that you want to link from and create a link to your chosen article
  2. Select the Code tab
  3. Look for the link that you've just created; e.g. it might look something like
  4. 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"
  5. To see your links in action, publish your changes 

Was this article helpful?