SimpleTOC – Table of Contents Block

plugin banner

Adds a custom Table of Contents Gutenberg block.

Author:Marc Tönsing (profile at wordpress.org)
WordPress version required:5.9
WordPress version tested:6.5
Plugin version:6.4.3
Added to WordPress repository:14-04-2020
Last updated:04-04-2024
Rating, %:100
Rated by:68
Plugin URI:https://marc.tv/simpletoc-wordpress-inhaltsve...
Total downloads:364 215
Active installs:10 000+
plugin download
Click to start download

Add a Table of Contents block to your posts and pages. The TOC is a nested list of links to all heading found in the post or page. To use it, simply add a block and search for “SimpleTOC” or just “TOC”.

The maximum depth of the toc can be configured in in the blocks’ sidebar among many other options. There can hide the headline “Table of Contents” and add your own by using a normal heading block.

SimpleTOC is open-source and developed on GitHub Pages. If you find a bug or have an idea for a feature please feel free to contribute and create a pull request.

Spin up a new WordPress instance with the SimpleTOC plugin already installed.

Features

  • Designed for Gutenberg.
  • Zero configuration: Add the SimpleTOC block to your post and that’s it.
  • Minimal and valid HTML output.
  • Utilizes the browser’s built-in details tag for a collapsible interface.
  • No JavaScript or CSS added. Unless you activate the accordion menu.
  • Style SimpleTOC with Gutenberg’s native group styling options.
  • Inherits the style of your theme.
  • Smooth scrolling effect using CSS.
  • Optional ARIA Label and navigation role attributes.
  • Translated in multiple languages. Including German, Japanese, Chinese (Taiwan), Dutch, Brazilian Portuguese, French, Spanish and Latvia.
  • Ideal for creating a Frequently Asked Questions section on your website.

Customization

  • Administrators can utilize global settings to supersede the individual block settings.
  • Add background and text color with Gutenberg groups.
  • Native block support for wide and full width.
  • Control the maximum depth of the headings.
  • Choose between an ordered, bullet HTML list. Or indent the list.
  • Select a heading level or turn it into a paragraph.
  • Disable the h2 heading of the TOC block and add your own.

Compatibility

  • GeneratePress and Rank Math support.
  • Works with popular AMP plugins.

Credits

This plugin is forked from pdewouters and uses code from Easy-Table-of-Contents

Many thanks to Tom J Nowell and and Sally CJ who both helped me a lot with my questions over at wordpress.stackexchange.com

Thanks to Quintus Valerius Soranus for inventing the Table of Contents around 100 BC.


Screenshots
FAQ
ChangeLog