Title: SimpleTOC &#8211; Table of Contents Block
Author: Marc Tönsing
Published: <strong>14 aprilie 2020</strong>
Last modified: 12 aprilie 2026

---

Caută module

![](https://ps.w.org/simpletoc/assets/banner-772x250.png?rev=2893800)

![](https://ps.w.org/simpletoc/assets/icon.svg?rev=2796116)

# SimpleTOC – Table of Contents Block

 De [Marc Tönsing](https://profiles.wordpress.org/marcdk/)

[Descarcă](https://downloads.wordpress.org/plugin/simpletoc.7.0.3.zip)

 * [Detalii](https://ro.wordpress.org/plugins/simpletoc/#description)
 * [Recenzii](https://ro.wordpress.org/plugins/simpletoc/#reviews)
 *  [Instalare](https://ro.wordpress.org/plugins/simpletoc/#installation)
 * [Dezvoltare](https://ro.wordpress.org/plugins/simpletoc/#developers)

 [Suport](https://wordpress.org/support/plugin/simpletoc/)

## Descriere

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.

[Spin up](https://demo.tastewp.com/simpletoc) a new WordPress instance with the 
SimpleTOC plugin already installed.

#### User Feedback

> „It is lightweight, stable, and fully compatible with WordPress Full Site Editing.
> A reliable solution that integrates seamlessly and performs exactly as expected.”
> —
> [@js100 on wordpress.org](https://wordpress.org/support/topic/good-job-1889/)
> „Does the job perfectly, and adds no bloat.”
>  — [@clicknathan on wordpress.org](https://wordpress.org/support/topic/does-the-job-perfectly-and-adds-no-bloat/)
> „Simple yet powerful. Great plugin that does exactly what you need.”
>  — [@mixey on wordpress.org](https://wordpress.org/support/topic/simple-yet-powerful-106/)

#### Accessibility

This plugin is designed & developed for WCAG 2.2 level AA conformance. The plugin
is tested with assistive technology and intended to be accessible, however some 
third party plugins or themes may affect the individual accessibility on a given
website. If you find an accessibility issue, please [let us know](https://github.com/mtoensing/simpletoc/issues)
and we’ll try to address it promptly.
 Hidden TOCs use native `<details>` and `<
summary>` semantics without extra ARIA references that require custom IDs.

#### 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 by default. Optional features such as the accordion menu,
   smooth scrolling, or box style add minimal assets only when enabled.
 * Optional box style for the TOC with a default gray background.
 * Style SimpleTOC with Gutenberg’s native group styling options.
 * Inherits the style of your theme.
 * Smooth scrolling effect using CSS.
 * Accessibility built-in by following web standards.
 * Optional ARIA Label and navigation role attributes.
 * Translated in [multiple languages](https://translate.wordpress.org/projects/wp-plugins/simpletoc/).
   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.
 * Enable a box style and choose a box color directly in the block sidebar.
 * 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.

#### How to contribute

SimpleTOC is open-source and developed on [GitHub Pages](https://github.com/mtoensing/SimpleTOC).
If you find a bug or have an idea for a feature please feel free to contribute and
create a pull request.

### Credits

This plugin is forked from [pdewouters](https://github.com/pdewouters/gutentoc) 
and uses code from [Easy-Table-of-Contents](https://github.com/shazahm1/Easy-Table-of-Contents)

Many thanks to [Tom J Nowell](https://tomjn.com) and and Sally CJ who both helped
me a lot with my questions over at wordpress.stackexchange.com

And many more thanks to all the [developers on GitHub](https://github.com/mtoensing/simpletoc/graphs/contributors)
who helped me making SimpleTOC what it is today!

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

## Capturi ecran

 * [[
 * SimpleTOC block in Gutenberg editor.
 * [[
 * SimpleTOC in the post.
 * [[
 * Simple but powerful. Customize each TOC as you like.
 * [[
 * Control the maximum depth of the headings.
 * [[
 * SimpleTOC styled with Gutenbergs native group styles.
 * [[
 * SimpleTOC Advanced Features
 * [[
 * Gutenberg Heading block: Set a custom anchor
 * [[
 * SimpleTOC hidden in the accordion menu.
 * [[
 * SimpleTOC global settings.

## Blocuri

Acest modul oferă 1 bloc.

 *     SimpleTOC Adds a Table of Contents.

## Instalare

SimpleTOC can be found and installed via the Plugin menu within WordPress administration(
Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and 
installed manually…

In Gutenberg, add a block and search for „SimpleTOC” or just „TOC”. Please save 
your content before you use the block.

## Întrebări frecvente

### Configuring Global Settings in SimpleTOC

SimpleTOC allows you to configure global settings for your WordPress website. These
settings can be enforced globally, overriding any block-level configurations that
may exist. To access these settings, navigate to the SimpleTOC section of the WordPress
Settings.

### 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 to exclude a single heading from the TOC?

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. You can find this field in 
the same place as the HTML anchor field: In the Block > Advanced sidebar. But first,
think about the reason you would like to hide a specific heading. Maybe you would
like to remove all headings 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 perhaps it is not needed in the post itself?

### I would like to save my SimpleTOC settings as default. Is that possible?

You can convert your configured SimpleTOC block into a reusable block in Gutenberg.
It will keep its settings. This way, you can use your desired settings for each 
new post by adding the reusable block.

### How to add a div tag wrapper to the TOC?

If you add a custom class to the SimpleTOC block in „Advanced” and then „Additional
CSS Class(es)” a div with that class will be wrapped around the HTML output.

### How to allow developers to exclude specific headings programmatically?

Use the ‘simpletoc_excluded_blocks’ filter. For example, this code will exclude 
heading blocks that are inside a column block.

Example:

    ```
    add_filter( 'simpletoc_excluded_blocks', function ( array $blocks ) {
        $blocks[] = 'core/column';

        return $blocks;
    } );
    ```

### How do I change the color of the accordion menu?

The heavy plus character I used can not be colored with css without hacks. But you
can change the icon to something else and change the color of the new icon.

    ```
    .simpletoc-collapsible::after {
        content: "✖";
        color: #e94c89;
    }
    ```

### 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 was 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.

## Recenzii

![](https://secure.gravatar.com/avatar/0305ccdaadb7ee42a8adbe1c18ce4d6a27ee05bb03258dc559496b7e7645e266?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-632/)󠁿

 [3tianne](https://profiles.wordpress.org/3tianne/) 7 ianuarie 2026 1 răspuns

Does the job with no fuss. I feel that the option to include a basic show/hide button(
no animations or other bloat necessary) would add a great deal of polish for very
little impact. But, the plugin advertises itself as something that is minimalist,
no CSS, no JS, and that is what it is. The links also follow the CSS rules from 
the site theme which is strangely not the case for other TOC plugins. Well done 
this dev.

![](https://secure.gravatar.com/avatar/bef42f4e492576aaa7a439420ff1c232a1e2afe0d7793809dee10d727fb9abb2?
s=60&d=retro&r=g)

### 󠀁[This one will stay in my sites](https://wordpress.org/support/topic/this-one-will-stay-in-my-sites/)󠁿

 [Zetona](https://profiles.wordpress.org/zetona/) 26 decembrie 2025

Thank you Marc, your plugin just works as expected!

![](https://secure.gravatar.com/avatar/1c19492d5ef0dd503e56f6f1b31d11c32c5b4e8df38a6cc26800d6cdd33be90c?
s=60&d=retro&r=g)

### 󠀁[Good job!](https://wordpress.org/support/topic/good-job-1889/)󠁿

 [js100](https://profiles.wordpress.org/js100/) 29 noiembrie 2025 1 răspuns

The plugin works exceptionally well. It is lightweight, stable, and fully compatible
with WordPress Full Site Editing. A reliable solution that integrates seamlessly
and performs exactly as expected.

![](https://secure.gravatar.com/avatar/da4dbd5fb92824aceaed1008170588282b36491ab2baae3375bd5de0e8cea7bf?
s=60&d=retro&r=g)

### 󠀁[Does the job perfectly, and adds no bloat](https://wordpress.org/support/topic/does-the-job-perfectly-and-adds-no-bloat/)󠁿

 [Clicknathan](https://profiles.wordpress.org/clicknathan/) 13 mai 2025 1 răspuns

Comparing this to the „Table Of Contents Block” by WPDeveloper, I prefer this one
because: It just works automatically. It has less options, but just enough to do
what you need. It adds nothing to the frontend to cause bloat. No CSS, no JS. At
least not right out of the box. Additional settings can be enabled that will add
these, but it’s nice that we have the option! This is an example of what a well-
written plugin should be.

![](https://secure.gravatar.com/avatar/d2021a1a3720e51d9d66e833fc00464c5c86b1b6a0abfbf71a66353194653d14?
s=60&d=retro&r=g)

### 󠀁[Klein und Fein](https://wordpress.org/support/topic/klein-und-fein-5/)󠁿

 [Burgeule](https://profiles.wordpress.org/burgeule/) 11 ianuarie 2025

Ich hatte den Button erst gar nicht gefunden / übersehen unter „Blöcke” -> „Design”-
> „SimpleTOC”.Klein und fein, wirklich zu empfehlen…

![](https://secure.gravatar.com/avatar/58a965bf457978ccc1ccc7bfb72e6381b2e17948b56b83d020c62fe68772ea25?
s=60&d=retro&r=g)

### 󠀁[Great plugin that works really well](https://wordpress.org/support/topic/great-plugin-that-works-really-well/)󠁿

 [Mark Wilkinson](https://profiles.wordpress.org/wpmarkuk/) 5 noiembrie 2024

This is an excellent plugin that easily adds table of contents in your posts / pages
and it provides links to the relevant headings. Does exactly what I want and I would
highly recommend it if you are looking for an easy to use tale of contents block
plugin. Thanks so much for sharing.

 [ Citește toate cele 75 de recenzii ](https://wordpress.org/support/plugin/simpletoc/reviews/)

## Contributori și dezvoltatori

„SimpleTOC – Table of Contents Block” este un software open-source. La acest modul
au contribuit următoarele persoane.

Contributori

 *   [ Marc Tönsing ](https://profiles.wordpress.org/marcdk/)

„SimpleTOC – Table of Contents Block” a fost tradus în 17 locale. Mulțumim [traducătorilor](https://translate.wordpress.org/projects/wp-plugins/simpletoc/contributors)
pentru contribuția lor.

[Tradu „SimpleTOC – Table of Contents Block” în limba ta.](https://translate.wordpress.org/projects/wp-plugins/simpletoc)

### Te interesează dezvoltarea?

[Răsfoiește codul](https://plugins.trac.wordpress.org/browser/simpletoc/), vezi 
[depozitarul SVN](https://plugins.svn.wordpress.org/simpletoc/), sau abonează-te
la [jurnalul de dezvoltare](https://plugins.trac.wordpress.org/log/simpletoc/) prin
[RSS](https://plugins.trac.wordpress.org/log/simpletoc/?limit=100&mode=stop_on_copy&format=rss).

## Istoric modificări

#### 7.0.3

 * Fixed: Removed an invalid `aria-labelledby` reference from hidden TOC `<details
   >` markup and now rely on native `<summary>` labeling.

#### 7.0.2

 * Fixed: Removed an invalid `aria-labelledby` reference from hidden TOC `<details
   >` markup and now rely on native `<summary>` labeling.

#### 7.0.1

 * Added: Direct link from the Advanced Features sidebar to the global SimpleTOC
   settings.
 * Fixed: Global settings link now appears reliably in the editor sidebar.
 * Changed: Wrapper toggle now reflects the automatic wrapper state while box style
   is active.

#### 7.0.0

 * Added: Box style option in the block sidebar with a color picker and default 
   gray background.
 * Added: Global setting to force the default gray box style for all SimpleTOC blocks.
 * Added: Frontend box-style CSS registered through block metadata.

#### 6.9.8

 * Updated: Dependencies and house-keeping.
 * Fix: corrected dependency declarations.

#### 6.9.7

 * Fixed: GeneratePress Dynamic Tags work again – hopefully. If not, please report
   here https://github.com/mtoensing/simpletoc/issues/79#issuecomment-3745650464
   Thanks @jhanten

#### 6.9.6

 * Added: Coding standards cleanup with improved rules, cleaner code, safer output,
   and consistent naming. Thanks @ronalfy
 * Added: Minimum PHP version requirement set to 7.3

#### 6.9.4

 * Added: Introduced proper PHP namespaces to avoid class and function name conflicts
   and improve overall code robustness. Thanks @ronalfy.
 * Added: Improved sidebar sub-menu for the “Hide SimpleTOC” option

#### 6.9.3

 * Fix: Fix Multiple IDs in Table of Contents Thanks @ronalfy
 * Added: Support for GenerateBlocks 2.1.0 Thanks @ronalfy

#### 6.9.1

 * Added: Support for the new V3 block api.
 * Added: Tested compatibility with WordPress 6.9

#### 6.7.3

 * Added: Tested compatibility with WordPress 6.8

#### 6.7.2

 * Added: Support for GenerateBlocks 2.0. Thanks @blronaldhuereca
 * Added: Included an accessibility statement in the plugin description. Thanks 
   Gen Herres.

## Meta

 *  Versiunea **7.0.3**
 *  Ultima actualizare **Acum 2 zile**
 *  Instalări active: **10.000+**
 *  Versiune WordPress ** 5.9 sau mai recentă **
 *  Testat până la **6.9.4**
 *  Versiune PHP ** 7.3 sau mai recentă **
 *  Limbi
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/simpletoc/), [Czech](https://cs.wordpress.org/plugins/simpletoc/),
   [Dutch](https://nl.wordpress.org/plugins/simpletoc/), [English (US)](https://wordpress.org/plugins/simpletoc/),
   [French (France)](https://fr.wordpress.org/plugins/simpletoc/), [German](https://de.wordpress.org/plugins/simpletoc/),
   [Greek](https://el.wordpress.org/plugins/simpletoc/), [Italian](https://it.wordpress.org/plugins/simpletoc/),
   [Japanese](https://ja.wordpress.org/plugins/simpletoc/), [Latvian](https://lv.wordpress.org/plugins/simpletoc/),
   [Polish](https://pl.wordpress.org/plugins/simpletoc/), [Portuguese (Brazil)](https://br.wordpress.org/plugins/simpletoc/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/simpletoc/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/simpletoc/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/simpletoc/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/simpletoc/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/simpletoc/) și [Spanish (Venezuela)](https://ve.wordpress.org/plugins/simpletoc/).
 *  [Tradu în limba ta](https://translate.wordpress.org/projects/wp-plugins/simpletoc)
 * Etichete
 * [accessibility](https://ro.wordpress.org/plugins/tags/accessibility/)[block](https://ro.wordpress.org/plugins/tags/block/)
   [table](https://ro.wordpress.org/plugins/tags/table/)[table of contents](https://ro.wordpress.org/plugins/tags/table-of-contents/)
   [toc](https://ro.wordpress.org/plugins/tags/toc/)
 *  [Vizualizare avansată](https://ro.wordpress.org/plugins/simpletoc/advanced/)

## Evaluări

 5 din 5 stele.

 *  [  72 5 – de recenzii (stele)     ](https://wordpress.org/support/plugin/simpletoc/reviews/?filter=5)
 *  [  3 4 – recenzii (stele)     ](https://wordpress.org/support/plugin/simpletoc/reviews/?filter=4)
 *  [  0 3 – recenzii (stele)     ](https://wordpress.org/support/plugin/simpletoc/reviews/?filter=3)
 *  [  0 2 – recenzii (stele)     ](https://wordpress.org/support/plugin/simpletoc/reviews/?filter=2)
 *  [  0 1 – recenzii (stele)     ](https://wordpress.org/support/plugin/simpletoc/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simpletoc/reviews/#new-post)

[Vezi toate recenziile](https://wordpress.org/support/plugin/simpletoc/reviews/)

## Contributori

 *   [ Marc Tönsing ](https://profiles.wordpress.org/marcdk/)

## Suport

Probleme rezolvate în ultimele două luni:

     2 din 3

 [Vezi forumul pentru suport](https://wordpress.org/support/plugin/simpletoc/)

## Donează

Vrei să sprijini dezvoltarea acestui modul?

 [ Donează pentru acest modul ](https://marc.tv/out/donate)