Table of Contents

[powerkit_alert type=”warning” dismissible=”false” multiline=”true”]

Powered by Powerkit

You need to install and activate our free plugin Powerkit to make this feature work.

You may install Powerkit from the list of recommended plugins in AppearanceInstall Plugins or from the common plugins page in PluginsInstall Plugins.
[/powerkit_alert]

Display table of contents automatically with a shortcode or in a widget based on the page headings.

Widget

[powerkit_alert type=”warning” dismissible=”false”]

This feature is available in themes that support widgets only.

[/powerkit_alert]

You may display the Table of Contents widget in your sidebar by following these steps:

  1. Navigate to Appearance → Widgets.
  2. Drag the Table of Contents widget to the desired widget area.
  3. Configure available widget options and click Save.

Shortcode

[powerkit_toc title="Table of Contents" depth="2" min_count="4" min_characters="1000"]

Accepted Attributes

title

Display title. Default is empty.

depth

Depth of headings. Default is 2.

min_count

The minimum number of headings in the page content. Default is 4.

min_characters

The minimum number of characters of post content. Default is 1000.

Exclude Specific Headers

To exclude a certain header from the Table of Contents, add the class pk-title to the header element.