Table of Contents

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

Widget

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.