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 editorTable of Contents
PlanFree (sticky table of contents and list icons need Pro)
Best forLong blog posts, tutorials, guides, documentation and landing pages
Live demoSee the Table of Contents block in action

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

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

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.

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
  • 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 to unlock these features.

Extensions you can use with this block #

Frequently asked questions #

Does the Table of Contents block update automatically?

Can I exclude a heading from the table of contents?

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

Does a table of contents help SEO?

Is the Table of Contents block free?

Related docs #

Updated on November 7, 2026

What are your feelings

  • Happy
  • Normal
  • Sad