How to Create a Collapsible Table of Contents in WordPress?

Key Takeaways

  • Nexter Blocks includes a Table of Contents block that allows users to create a sticky table of contents in WordPress.
  • Users can enable the Default On toggle to keep the table of contents open by default or disable it to keep it collapsed.
  • The Table of Contents block requires Nexter Blocks to be installed and activated for full functionality.
Table of Contents

Do you want to add a table of contents in Elementor? Adding a table of contents allows readers to easily navigate through your content, find the information they need, and improve the overall user experience.

With the Table of Contents block from Nexter Blocks, you can create a beautiful sticky 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 Contents widget to the page and follow the steps.

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

2. Then enable the Toggle Icon toggle from the Table Title tab.

tableofcontent toggle icon

Note: Make sure the Show Title toggle is enabled.

From the Open and Close tabs, you can add separate icons for the open and close states.

You can enable the Default On toggle to keep the table of contents open by default.

Note: To keep the table of contents collapsed by default, disable the Default On toggle. 

Now you’ll have a beautiful collapsible table of contents.

tableofcontent collapse demo 2

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 is not showing up in WordPress?

If the Table of Contents block isn't appearing, ensure that the Nexter Blocks plugin is installed and activated. This block is a part of Nexter Blocks, and without it, you won't have access to its features. Check your plugin settings and make sure everything is properly set up.

Can I use the Table of Contents block with other page builders besides Gutenberg?

The Table of Contents block is specifically designed for Gutenberg as part of Nexter Blocks. While it supports Elementor and Bricks, the primary functionality is optimized for Gutenberg. If you're using a different builder, you may not have access to this block's features.

What is the best way to style my collapsible Table of Contents?

To style your collapsible Table of Contents effectively, select the appropriate type and style from the Layout tab. This allows you to customize how the table appears, enhancing the user experience. Experiment with different styles to find one that fits your site's design.

Is there a way to make the Table of Contents sticky while scrolling?

The Table of Contents block from Nexter Blocks allows you to create a sticky table of contents, which remains visible as users scroll through the content. This feature improves navigation and helps users quickly find the information they need without losing their place.

Last reviewed: April 14, 2026

Related Docs