How-to guide

How to add a table of contents to your website

A long page is easier to start when you can see what is in it. You don’t have to write the list or the anchor links by hand: your headings already say everything.

  • One-time payment
  • Any website builder
  • Live in about 5 minutes
Table of Contents: How to add a table of contents to your websiteTry 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.

Built from the headings already on the page

Marks the section being read as the visitor scrolls

A small link beside every heading, for sharing one section

How to add it to your website

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 have to add ids or anchors to my headings?

No. Headings without an id get one made from their text, so links to sections work straight away.

What if I change a heading?

The list is built when the page loads, so it always matches the page. There is nothing to update.

Can it float beside the text?

Yes. It can sit in the text above the first heading, or float at the left or right. On small screens the floating list becomes a button.

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.