Back to Support Content and Media Blocks Table of Contents Block

Table of Contents Block

You can use the Table of Contents block to quickly create a table of contents based on all the headings on a page. It gives your readers an overview of your content and links to click to navigate directly to that section.

Add the Table of Contents Block

To add the Table of Contents block, click on the + Block Inserter icon and search for “table of contents”. Click to add the block to a page or post.

Adding a Table of Contents block with the "+ Block Inserter" button at the top left of the block editor.
Add a new block and search for “Table of Contents”

For more information, visit our detailed instructions on adding blocks.

The Table of Contents block automatically creates links out of all the Heading blocks on the page. It uses HTML anchors so that readers can click on any item in the table of contents to jump directly to the section of the page with that heading.

💡

The Table of Contents block uses all headings on the page. If you prefer to pick and choose which items to include in a table of contents, you can use page jumps to manually create a table of contents instead.

If you insert the Table of Contents block but don’t yet have any Heading blocks within your content, you’ll be given a prompt to start adding Heading blocks to create a table of contents.

The Table of Contents block shown before any Heading blocks have been added to the page.
Adding the Table of Contents block without existing Heading blocks on the page.

Headings are ranked by importance or level. The highest level of heading is H1 and the lowest is H6. Ideally, your first Heading block on the page will be set to H2 (since the page’s title is set to H1.) Learn more about heading levels.

If you start with an H2 heading and then add an H3 to H6 below it, these will get incrementally nested and added as sub-headings within the Table of Contents block as illustrated below:

A table of contents, showing H2 headings, with H3s and H4s indented below in a hierarchical structure.

If you reverse this order and start with an H6 then add an H2 below it, the H2 won’t appear in the Table of Contents block at all.

Table of Contents Block Toolbar

When you click on the block, a toolbar of options will appear above or below it:

The Table of Contents Block Toolbar

The Table of Contents block has the following options in its toolbar, from left to right:

Table of Contents Block Settings

When you select a block, you will find additional block settings in the right sidebar. If you do not see the sidebar, you may need to click the Settings icon in the top-right corner to bring up the settings. This icon looks like a square with two uneven columns:

The settings icon in the Editor with a tooltip "Settings" below it.
Click the Settings icon to open the block settings

Settings

On pages or posts that include pagination or page breaks, this setting allows you to either include headings from the current page only or include headings from all pages.

Table of Contents block settings.

Advanced

For more, visit our detailed instructions on Advanced settings.

Table of Contents Block Styles

In the block settings sidebar, click on the Styles icon to access the design settings for the block. The Styles icon is in the shape of a circle with half of the circle filled in:

An arrow points to the Styles icon that you can click to open up the block styles section.

The Table of Contents block includes the following settings to adjust the appearance of all the text in that block:

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!