How to Exclude a Title from a Table of Contents in WordPress?

Key Takeaways

  • Nexter Blocks includes a Table Of Contents block that allows users to exclude specific titles from the table of contents in WordPress.
  • Users can exclude multiple headings by adding the CSS class 'js-toc-ignore' in the Additional CSS class(es) field of the Advanced tab.
  • The Table Of Contents block is part of Nexter Blocks, which must be installed and activated to access this feature.
Table of Contents

Do you want to exclude a title from the table of contents in WordPress? While the table of contents helps users easily navigate a page, there may be times when certain headings or titles shouldn’t be included. Excluding these can help keep the table of contents focused and relevant.

With the Table Of Contents block from Nexter Blocks, you can easily exclude a title or heading from the table of contents in WordPress.

To check the complete feature overview documentation of the Nexter Blocks Table Of Contents block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.

To do this, add the Table Of Content widget to the page and follow the steps.

1. Select the appropriate type and style from the Layout tab.

2. Then select the heading that you want to exclude from the content.

3. After that, go to the Advanced tab, and add the CSS class “js-toc-ignore” in the Additional CSS class(es) field.

tableofcontent exclude title

4. Then update the page.

Now refresh the page and that specific heading won’t show in the table of contents.

Following this process, you can exclude multiple headings from the table of contents.

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 heading I want to exclude still appears in the table of contents?

If the heading you want to exclude still appears, double-check that you've added the CSS class 'js-toc-ignore' in the Additional CSS class(es) field under the Advanced tab. This step is crucial for the exclusion to work. If the class is correctly applied, try refreshing the page again to see if the changes take effect.

What is the best practice for excluding titles in a table of contents?

A best practice for excluding titles in a table of contents is to only exclude headings that are not essential for navigation. This keeps the table focused and user-friendly. Use the 'js-toc-ignore' class judiciously to ensure that important sections remain accessible while less relevant headings are hidden.

Does the Table of Contents block work with other WordPress themes?

The Table of Contents block is part of Nexter Blocks, which is designed specifically for the Gutenberg editor. While it can be used with other themes, it is optimized for use with Nexter Theme. Ensure that you have Nexter Blocks installed and activated to access this feature effectively.

How can I learn more about the features of the Table of Contents block?

To explore the complete feature overview of the Table Of Contents block, you can check the documentation here. This resource provides detailed insights into all functionalities, helping you make the most of the block.

Last reviewed: April 14, 2026

Related Docs