SimpleTOC – Table of Contents Block


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.


  • Sin JavaScript o CSS añadido.
  • Salida HTML mínima y válida.
  • Diseñado para Gutenberg.
  • Style SimpleTOC with Gutenberg’s native group styling options.
  • Convert the styled group to a reusable block for future posts.
  • Hereda el estilo de tu tema.
  • Support for paginated posts.
  • Support for column block layouts.
  • Control the maximum depth of the headings.
  • Choose between an ordered and unordered HTML list.
  • SEO friendly: Disable the h2 heading of the TOC block and add your own.
  • Comes with English, French, Spanish, German, and Brazilian Portuguese translations.
  • Works with non-Latin texts. Tested with Japanese and Arabic.
  • Finds headlines in groups and reusable blocks. And in groups within reusable blocks.
  • Compatible con plugins AMP.
  • Compatibilidad con Rank Math.


Este plugin se ha bifurcado de por pdewouters y usa el código de por shazahm1

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

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

SimpleTOC is developed on GitHub:


  • Bloque de SimpleTOC en el editor Gutenberg.
  • SimpleTOC en la entrada.
  • Simple but powerful. Customize each TOC as you like.
  • Control the maximum depth of the headings.
  • Style SimpleTOC with Gutenbergs native group styling options.


Este plugin proporciona 1 bloque.

  • SimpleTOC Adds a Table of Contents.


SimpleTOC se puede encontrar e instalar a través del menú «Plugins» dentro de la administración de WordPress (Plugins -> Añadir nuevo). Como alternativa, se puede descargar desde e instalarlo manualmente…

En Gutenberg, añade un bloque y busca «SimpleTOC» o simplemente «TOC». Por favor, guarda tu contenido antes de que uses el bloque.


Why did you do this?

Because I needed a simple plugin to do this job and decided to do it on his own. I believe that a Table of Contents does not need Javascript and additional css. Furthermore the plugin should work out-of-the-box without any configuration.

How do I change the TOC heading ‘Table of contents’ to some other words?

Hide the headline in the sidebar options of SimpleTOC and add your own heading.

How do I add SimpleTOC to all articles automatically?

I don’t see an easy solution at the moment. SimpleTOC is only a block that can be placed in your post. If there would be a plugin that adds blocks to every post then this would be the solution. I think this should be another separate plug-in to keep the code of SimpleTOC clean and … well, simple. Maybe someone knows of a plug-in that adds blocks automatically to all posts with some parameters and settings? What about site editing in WordPress? I think the core team is working on something like that. I will keep this post open. If I have gained more knowledge how to solve this I will add this feature.

How do I add a background color to SimpleTOC using Gutenberg groups?

Select the block and select «group» in the context menu. Apply «background color», «link color» and «text color» to this group. SimpleTOC will inherit these styles. You would like to use this styled SimpleTOC group next time you write a post? Convert it to a reusable block.

How do I add smooth scrolling?

You can optionally add the css class «smooth-scroll» to each link the TOC. Then you can install plugin that uses these classes.

How do I hide a single heading?

If you really want to hide a single heading from the table of contents then add the CSS class «simpletoc-hidden» to a heading block. But first of all, think about the reason you want to hide a specific heading. Maybe you want to remove all headins of a specific depth level. Then there is an option for that in the blocks options in Gutenberg. If you think this heading should not be part of the toc maybe it is not needed in the post itself?


23 de abril de 2022
I Like it since its not adding extra js, css file. Simple is the best. But i really dont like the block editor. Can you make a shortcode so that i could easily add it to classic editor. It's painful for me to switch block editor to add toc :((
3 de diciembre de 2021
Awesome, super-fast and super-lightweight without any added fluff ... just how I want it. To make typography, spacing, etc adjustments, I put it in a GenerateBlocks container ... easy-peasy 😉
3 de diciembre de 2021
Easy use, no problem ! But, language pack doesn't work. Whatever, we can replace "table of contents" with CSS. It could be fine if we can link an anchor when creating an internal link in page, product, article, ...
16 de julio de 2021
Perfect. Lightweight. Only wish it had AMP-friendly collapse options using "toggleVisibility" or something along those lines.
6 de julio de 2021
The plugin is perfect. The most important thing is that it does not use javascript. Just configure a block as needed and use it as a reusable block. Very good plugin - thanks for the good work
Leer todas las 28 reseñas

Colaboradores y desarrolladores

«SimpleTOC – Table of Contents Block» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«SimpleTOC – Table of Contents Block» ha sido traducido a 10 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce «SimpleTOC – Table of Contents Block» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


  • Works with WordPress 6.0
  • Support for paginated posts.


  • Fix: Requires at least WordPress 5.8. and not 5.9.
  • Fix: Better compatibility with Twenty-Twenty-One.
  • Fix: Localization is back again.
  • Feature: Added «simpletoc-title» and «simpletoc-list» CSS classes. This might break existing custom CSS styles that have not been applied with Gutenberg.
  • Feature: Toggle list indent.
  • Feature: Better «group» support. Put SimpleTOC in a group and style it with Gutenberg. See FAQ for details.
  • Feature: Native block support for wide and full width.
  • Feature: Added block.json and refactoring with coding standards for Gutenberg blocks.


  • Feature: Add the CSS class «smooth-scroll» to the links. This enables smooth scrolling in themes like GeneratePress.


  • Feature: Support for headlines in reusable blocks.


  • Feature: Added option to toggle absolute URLs.


  • Feature: Added option to replace ul tag with ol tag. This will add decimal numbers to each heading in the TOC.


  • Feature: Support for non-latin headlines. SimpleTOC now uses a character block list rather than an allow list.
  • Feature: Add the CSS class «simpletoc-hidden» to the heading block to remove it from the Table of Contents.


  • Feature: Experimental support for Arabic Text.


  • Added Brazilian Portuguese translations to the translations. Thanks Ralden Souza!


  • Añadida compatibilidad para el plugin Rank Math.