Knowledge Base
  1. Home
  2. Knowledge Base
  3. Tips & Tricks
  4. Adding a Table of Contents to the Knowledge Base

Adding a Table of Contents to the Knowledge Base

It’s easy to add a Table of Contents (ToC) to Knowledge Base pages. The Heroic Knowledge Base comes packed with a Knowledge Base Table of Contents widget.

The ToC detects the heading tags in an article such as H2 and automatically generates an index of links to the various section heading tags. This is then displayed in a widget at the side of the article.

Note that the headers will only be detected for heading tags H2-H6, H1 is reserved for the page title and will not be displayed in the ToC widget

knowledge-base-toc

 

To add a Table of Contents widget, simply goto Appearance > Widgets from your WordPress dashboard and drag the Knowledge Base Table of Contents widget to the sidebar area you want the widget to appear in.

ht-kb-toc-widget

 

 

Was this article helpful?
Related Articles