Can you add anchor tags to Help Center articles that are longer? | Community
Skip to main content
Answered

Can you add anchor tags to Help Center articles that are longer?

  • September 6, 2020
  • 9 replies
  • 98 views

Forum|alt.badge.img+1
Can you add anchor tags to Help Center articles that are longer?

Best answer by Eric Fitz

Hey @autumn​ - you can use the hash key ( # ) to add anchor tags to Help Center articles URLs.

 

For example: https://www.intercom.com/help/en/articles/167-install-intercom-on-your-website-and-chat-with-logged-out-visitors#install-the-javascript-code./p>

 

Sub-headers within your Article body can be used as anchors in this way.

9 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • September 8, 2020

Hey @autumn​ - you can use the hash key ( # ) to add anchor tags to Help Center articles URLs.

 

For example: https://www.intercom.com/help/en/articles/167-install-intercom-on-your-website-and-chat-with-logged-out-visitors#install-the-javascript-code./p>

 

Sub-headers within your Article body can be used as anchors in this way.


Forum|alt.badge.img+1
  • Author
  • Active User
  • September 8, 2020

So I'm looking to create a table of contents for an article. For example the structure will be similar to this:

 

What you'll learn:

  • Thing 1
  • Thing 2
  • Thing 3

 

Each of the bulleted "things" should pop down to that section in the article. Each section will have a sub-header title. So, how would I link the bulleted text to go to that section in the article? Would it be #Thing-1 or #Thing1?


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • September 9, 2020

In that case, it'd be # Thing-1.

 

Use hyphens in your anchor link to denote spaces between words!


Forum|alt.badge.img+1
  • Author
  • Active User
  • September 21, 2020

Just figured this out, thanks!


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • September 22, 2020

Glad to hear it! Just for my own information, was the solution I provided the correct one? Or did you need to do anything different?


Forum|alt.badge.img+1
  • Author
  • Active User
  • September 22, 2020

Yep, you were correct. Your solution worked like a charm.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • September 24, 2020

Delighted to hear it! 🙌 That's a good one to share in @Tips, Tricks, and Workarounds​ - even if you had an example article to share with other Connectors?


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • January 15, 2021

Hey @autumn​, some great news - we've shipped this as an official feature of Articles! You can read more about it here.


Forum|alt.badge.img+1
  • Author
  • Active User
  • January 15, 2021

This is so great! Thanks for sharing, @eric f11​. This will be very helpful for longer articles we have.