To make a content reader-friendly table of contents (TOC) is a great way to improve navigation and user experience. With the Gutenberg editor, adding a TOC is a simple and efficient solution.
In this tutorial blog post, we’ll explore how to add table of contents in Gutenberg to your WordPress content within less time.
Gutenberg has a built-in Table of Contents block that automatically generates a TOC from your post’s headings. It improves navigation and readability for long posts.
Quick Steps:
Step 1 Get the block
In the Gutenberg editor, click the “+” button, search for “Table of Contents,” and add it to your post. It automatically pulls in all the headings from your content.
Step 2: Customize the block
Settings: Choose heading levels and toggle current-page-only for paginated posts.
Styling: Adjust color, font size, border, spacing, and more from the sidebar.
Just add the Gutenberg TOC block, pick your heading levels, and style it; it’s quick.
The Advantages of Implementing a Table of Contents
A table of contents organizes your WordPress content, particularly the long content. Readers can scan the whole content through a TOC.
Let’s see the detailed benefits of implementing a table of contents.
🔰 Enhanced readability: For quick navigation and a better understanding of structure, you should implement a table of contents to your content.
🔰 Improved user experience: With a nice table of contents, users get faster access to information.
🔰 Better SEO: An organized TOC helps to improve search engine crawling and enhanced keyword optimization.
🔰 Increased accessibility: A table of contents makes it easier for screen readers and gives better accessibility for people with disabilities.
🔰 Professionalism: Additionally, a TOC gives a polished appearance and enhanced credibility to the content.
🔷 Easy technique to create columns and grids in Gutenberg
How to Add Table of Contents in Gutenberg
Let’s dive into the process of adding a table of contents to the WordPress content using the Gutenberg editor.
Gutenberg offers a handy block to add a table of contents to your WordPress content quickly.
STEP 1: Get the Block
In your content, if you type ‘/’, the Gutenberg Table of Contents block will appear. You can simply click on the block and add TOC in the Gutenberg editor.


Again, you can search the Gutenberg Table of Contents block by typing the name. Afterward, you can click on it or drag-and-drop it to the editor.


This is what the block looks like.


STEP 2: Customize the Block
However, as you structure your content with headings in Gutenberg, the Table of Contents block dynamically updates, mirroring your post’s hierarchy. It neatly indents the subheadings, creating a clear and intuitive roadmap for your readers. The default settings are designed to work seamlessly, requiring no extra effort. Modify your headings, and the TOC automatically adjusts.
Settings of Gutenberg Table of Contents
- Only include current page: When your post is split into multiple pages, this toggle allows you to decide what the Table of Contents shows. Off (default) → headings from all pages. On → only headings from the current page. If your post isn’t paginated, this setting does nothing.
- Include headings down to level: It lets you control how deep the Table of Contents goes. For example, set to H2 → only top-level headings appear, set to H4 → it also picks up H3s and H4s underneath them.


Style the Gutenberg Table of Contents Block
You can tweak a few basic styles of the block. You can change text color, font size, padding, margin, border, radius, and typography, etc.


Limitations of the Gutenberg Table of Contents block
🤔 There is a lack of the latest features in the block. For example, automatic numbering, collapsible sections, or the ability to exclude specific headings from the TOC are currently unavailable.
🤔 The Table of Contents relies heavily on a well-structured hierarchy of headings. Any changes to the headings can disrupt the TOC’s accuracy.
🤔 For long posts with numerous headings, the Gutenberg TOC block might slightly impact page loading speed.
👉 Bonus guide: How to add custom fields to Gutenberg.
Create your Table of Contents in Gutenberg
So to make your long-form content more accessible and engaging, you must consider implementing a TOC. It’ll also help to elevate the overall quality of your WordPress website and attract visitors.
And, now that you know how to add table of contents in Gutenberg, you can do it yourself easily.




Leave a Reply