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?

  • Sep 6, 2020 3:43 AM UTC
  • 9 replies
  • 179 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.

View original

9 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • Sep 8, 2020 11:45 AM UTC

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
  • Sep 8, 2020 3:12 PM UTC

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
  • Sep 9, 2020 9:51 AM UTC

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
  • Sep 21, 2020 4:46 PM UTC

Just figured this out, thanks!


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Sep 22, 2020 10:07 AM UTC

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
  • Sep 22, 2020 11:35 PM UTC

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


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Sep 24, 2020 9:40 AM UTC

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
  • Jan 15, 2021 10:42 AM UTC

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
  • Jan 15, 2021 3:49 PM UTC

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