How-to guide

How to add a table of contents to WordPress

No shortcode in every post and no block to insert: one line in your footer gives every long post a contents list made from its own headings.

  • One-time payment
  • Made for WordPress
  • Live in about 5 minutes
Table of Contents: How to add a table of contents to WordPressTry it live ↓

Try Table of Contents right here

The list is built from the headings in the demo. The marked entry is the section being read.

No shortcode or block to add to each post

Hidden by itself on posts with only a few headings

Works with the block editor, classic editor and page builders

How to add it to WordPress

Buy once, add your website in Fluri and pick Table of Contents. You get one line of code like this:

<script defer src="https://fluri.xyz/install/loader.js"
  data-site="your-site-key"></script>

After that, change settings, pause it or switch themes from your dashboard. You never edit your site again.

  1. In WordPress, go to Plugins → Add New and install a header and footer code plugin such as WPCode.
  2. Open Code Snippets → Add Snippet → Add Your Custom Code, and choose HTML snippet.
  3. Paste your Fluri snippet, set Location to Site Wide Footer and switch the snippet to Active.
  4. Save, open your website and press Check installation in your Fluri dashboard.

On a classic theme you can instead paste the snippet just before </body> in your theme’s footer.php (use a child theme so updates don’t remove it). Full WordPress guide

Questions

Something else? Send us a message.

Do I need a table of contents plugin for WordPress?

No. You paste one script tag into your site footer once, with a header and footer code plugin such as WPCode. Then every post with enough headings gets its list.

Will short posts get an empty-looking list?

No. You choose the smallest number of headings; below it, nothing is shown.

Does it work with my sticky header?

Yes. Set the space to keep above a heading, and jumps stop below your header instead of under it.

How much does it cost?

$19 once, with no subscription. That includes Table of Contents and all 65 other themes, on as many websites as you like.

Give your website a little life today.

Pick a theme, pay once, paste one line. It’s live in minutes.