How to Add a Table Of Contents in WordPress?

Key Takeaways

  • Nexter Blocks offers a Table Of Contents block that is highly customizable for WordPress websites.
  • The Table Of Contents block includes multiple styles, allowing users to choose from four pre-defined styles.
  • Users can select between ordered and unordered list types for the Table Of Contents block.
  • The Table Of Contents block supports features like smooth scroll and collapsible items for enhanced navigation.
Table of Contents

A table of contents not only provides your readers with a clear overview of the content but allows them to navigate easily to the sections that interest them most.

With the Table Of Contents block from Nexter Blocks, you can add a highly customizable table of contents to your WordPress website.

Required Setup

  • Make sure the default WordPress Block editor is active. 
  • You need to have the Nexter Blocks plugin installed and activated.
  • This is a Premium block, and you need the PRO version of Nexter Blocks.
  • Make sure the Table Of Contents block is activated, to verify this visit Nexter → Blocks → and Search for Table Of Contents and activate.

How to activate the Table Of Contents Block?

Go to 

  • Nexter Blocks 
  • Search the block nameandturn on the toggle.

table of content activation new

Key Features

How to Use the Table Of Contents Block?

Add the Table Of Contents block to the page.

Note: To create the header template, you can use the free Nexter Builder.

Layout

From the List Type section, you can select the list type. Here you’ll find two options – 

  • UL – For creating an unordered list, i.e. it will add bullet points in the table of contents.
  • OL – For creating an ordered list, i.e. it will add numbers in the table of contents.

Select the option as per your requirements.

Then, from the Style section, you can select a style for the table of contents. Here you’ll find 4 pre-defined styles and None for a no style option. 

Select the style as per your requirements, let’s select None here.

tableofcontent layout

By enabling the Child Collapsed toggle, you can hide the child tag from the table of contents.

Note: Any lower heading tag, added after a higher heading tag, is considered as the child tag of the higher heading tag. For example, if a H4 is added below a H3 tag then the H4 title is the child tag of the above H3 title. 

From the Smooth Scroll toggle, you can add a smooth scroll to the table of contents.

By enabling the Position Fixed toggle, you can make a sticky table of contents.

From the Heading Content Offset section, you can set the top offset value, i.e. the distance of the section heading from the top where the heading will be activated.

Content

From the Headings section, you can include the tags (H1 to H6) you want to show in the table of contents.

tableofcontent heading selector

To show the page content in the table of contents, you have to add the main container ID (with the # tag) of the page in the Content Selector field. To find the main container ID, you have to use the browser inspect element feature. 


tableofcontent heading selector demo

.

Note: The Nexter theme has “content” as the main container ID so we’ve used “#content”, your theme could have a different main container ID, you have to use that ID in the Content Selector field.

Table Title

By enabling the Show Title toggle, you can add different elements to the table of contents. When enabled, you’ll find the following options – 

From the Title section, you can add a title to the table of contents.

tableofcontent title

In the Description section, you can add a description to the table of contents.

By enabling the Main Icon toggle, you can add an icon to the table of contents.

From the Toggle Icon toggle, you can make the table of contents collapsible.

How to Style the Table Of Contents Block?

You can style the Table Of Contents block from the Style tab. 

Table Title – From here you can style the table of contents heading.

tableofcontent style 1

Heading Area – From here, you can style the content area of the table of contents.

Level 1 Typography – From here, you can manage the typography and normal and active color of the table of contents top-level headings.

Sub-Level Typography – From here, you can manage the typography and normal and active color of the table of contents sublevel headings.

Box Background – From here, you can style the table of contents container.

Advanced options remain common for all our blocks, you can explore all its options from here.

View Advanced tab tutorial.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if the Table Of Contents block isn't showing up?

If the Table Of Contents block isn't appearing, ensure that you have the Nexter Blocks plugin installed and activated. This block is part of the PRO version of Nexter Blocks, so you need to verify that the PRO version is active. Check by navigating to Nexter u2192 Blocks and searching for the Table Of Contents block to activate it.

What are the best practices for styling the Table Of Contents block?

When styling the Table Of Contents block, consider using the Style tab to customize the Table Title, Heading Area, and typography for both level 1 and sub-level headings. This ensures that your table is visually appealing and matches your site's design. Remember to test different styles to see what enhances readability and user experience.

How can I add smooth scrolling to the Table Of Contents?

To add smooth scrolling to the Table Of Contents, enable the Smooth Scroll toggle in the block settings. This feature improves navigation by allowing users to scroll smoothly to the sections they select from the table. It's particularly useful for long pages where quick navigation is essential. For more information, check the smooth scrolling effect guide.

Are there any limitations when using the Table Of Contents block?

One limitation of the Table Of Contents block is that it requires the Nexter Blocks plugin and the PRO version to function. Additionally, it relies on the default WordPress Block editor, so it won't work as a standalone theme without Gutenberg. Ensure your setup meets these requirements to avoid issues.

Last reviewed: April 14, 2026

Related Docs