---
title: Table of Contents Block
description: How to add an automatic table of contents to WordPress posts with the Ultimate Blocks Table of Contents block, including every setting, style option and Pro feature.
url: "https://ultimateblocks.com/docs/table-of-contents-block/"
updated: "2026-11-07"
category: "SEO, Schema & AI Blocks"
---

# Table of Contents Block

The **Table of Contents** block in Ultimate Blocks automatically builds a clickable table of contents from the headings in your WordPress post or page. Readers can see what the article covers and jump straight to the section they need. The block is free, and Ultimate Blocks Pro adds a sticky table of contents and custom list icons.

| **Block name in the editor** | Table of Contents |
| --- | --- |
| **Plan** | Free (sticky table of contents and list icons need Pro) |
| **Best for** | Long blog posts, tutorials, guides, documentation and landing pages |
| **Live demo** | [See the Table of Contents block in action](https://ultimateblocks.com/table-of-contents-block/) |

## What you can use it for

- Help readers navigate long blog posts and pillar articles.
- Give tutorials and documentation a clear outline at the top.
- Improve SEO: jump links can help Google show “Jump to” links for your page in search results.
- Keep a sticky table of contents on screen while readers scroll through long guides (Pro).

## How to add the Table of Contents block

1. Open the post or page in the WordPress block editor.
2. Click the **+** (Block Inserter) button.
3. Search for **Table of Contents** and click the block to add it.
4. The block lists your headings right away. If the post has no headings yet, add some, and the table of contents fills in automatically.

![Add the Table of Content Block](https://ultimateblocks.com/wp-content/uploads/2023/05/Add-the-Table-of-Content-Block.png)

**Tip:** Place the block near the top of your post, usually after the introduction, so readers see it before they start scrolling.

## Edit or hide individual entries

Each entry in the table of contents has two small buttons on the right when you edit the block:

- **Pencil icon:** change the text of that entry without changing the heading on the page. This is useful for shortening long headings.
- **Trash icon:** hide that heading from the table of contents. The heading stays on the page.

You can also click the block title (Table of Contents) to rename it, or clear it to show no title.

## Settings tab

Select the block and open the block sidebar on the right. The **Settings** tab (gear icon) has these panels:

![General Settings of the Table of Content Block of Ultimate Blocks](https://ultimateblocks.com/wp-content/uploads/2023/05/General-Settings-of-the-Table-of-Content-Block.png)

### Allowed Headings

Tick the heading levels to include, from **H1** to **H6**. Most posts work best with H2 and H3 only.

### Layout

- **Columns:** show the list in one, two or three columns. Two columns keeps long lists compact.
- **List type:** choose a bulleted list, numbered list or plain list. You can also switch these from the block toolbar.

### Collapsible

- **Collapsible:** let readers show or hide the table of contents with a toggle link.
- **Show text** and **Hide text:** change the words used on the toggle link.
- **Initial Show:** choose whether the list is open or closed when the page loads.
- **Initial Hide on Mobile:** start closed on phones to save screen space.

### Scroll

- **Enable smooth scrolling:** scroll smoothly to a section instead of jumping.
- **Scroll offset adjustment:** stop sticky headers from covering your headings. Choose **Relative to first available fixed/sticky element**, **Relative to a specific element** (enter its ID or class), **Fixed height** (enter a number of pixels) or **No adjustments**.

### Sticky (Pro)

- **Sticky:** show a floating table of contents button that stays on screen while readers scroll.
- **Position (%):** set how far down the screen the sticky button sits.
- **Width (px):** set the width of the sticky table of contents.
- **Hide On Mobile:** turn the sticky version off on phones.

Read the full guide: [How to add a sticky table of contents in WordPress](https://ultimateblocks.com/docs/how-to-add-a-sticky-table-of-contents/).

### Additional

- **Link to divider:** link the list to a divider so readers can jump back to the table of contents.
- **Romanize anchor links:** convert non-Latin headings (for example Cyrillic) into readable Latin anchor links.
- **Remove diacritics from anchor links:** turn letters like é or ü into plain letters in the link.

## Styles tab

Switch to the **Styles** tab (half-circle icon) to change the look of the block:

![Add Style to the Table of Contents Block](https://ultimateblocks.com/wp-content/uploads/2023/05/Add-Style-to-the-Table-of-Contents-Block.png)

- **Title Font Size** and **List Font Size**.
- **Colors:** Title Color, Title Background Color, List Color, List Background Color, Item number color and List icon color.
- **Border** and **Border Radius**.
- **Dimension Settings:** padding, margin and the spacing between items.

## Pro features

- **Sticky table of contents:** a floating button that opens the table of contents from anywhere on the page.
- **Section icons:** replace the bullets with icons from the icon library.

[Get Ultimate Blocks Pro](https://ultimateblocks.com/pricing/) to unlock these features.

## Extensions you can use with this block

- [Visibility Control](https://ultimateblocks.com/docs/visibility-control/) (Pro): show the block only to certain users or on a schedule.
- [Animation](https://ultimateblocks.com/docs/animation/) (Pro): animate the block when it comes into view.
- [Responsive Control](https://ultimateblocks.com/docs/responsive-control/): hide the block on desktop, tablet or mobile.
- [Custom CSS](https://ultimateblocks.com/docs/custom-css/): add your own CSS to this block only.
- [Saved Styles](https://ultimateblocks.com/docs/how-to-save-a-style/) (Pro): save your design and reuse it on other posts.

## Frequently asked questions

**Does the Table of Contents block update automatically?**

Yes. It reads the headings in your post. When you add, remove or rename a heading, the table of contents updates to match.

**Can I exclude a heading from the table of contents?**

Yes. Click the trash icon next to that entry to hide it, or untick its heading level under Allowed Headings.

**Why does my sticky header cover the heading after I click a link?**

Open the Scroll panel and set Scroll offset adjustment to Relative to first available fixed/sticky element, or enter a fixed height in pixels.

**Does a table of contents help SEO?**

It makes long posts easier to scan, and its jump links can help Google show “Jump to” links for your page in search results.

**Is the Table of Contents block free?**

Yes. It is included in the free Ultimate Blocks plugin. The sticky table of contents and section icons are part of Ultimate Blocks Pro.

## Related docs

- [How to add a sticky table of contents in WordPress](https://ultimateblocks.com/docs/how-to-add-a-sticky-table-of-contents/)
- [Content Toggle (Accordion) block](https://ultimateblocks.com/docs/content-toggle-block/)
- [How-To (Schema) block](https://ultimateblocks.com/docs/howto-schema-block/)
- [What is Ultimate Blocks?](https://ultimateblocks.com/docs/what-is-ultimate-blocks/)
