How to Create a Collapsible Table of Contents in WordPress?

Key Takeaways

  • Utilizes the Table of Contents block from Nexter Blocks to create a sticky table of contents in WordPress.
  • Enables the Toggle Icon toggle from the Table Title tab to allow collapsible functionality.
  • Configures the Default On toggle to set whether the table of contents is open or collapsed by default.
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.

How to Create a Collapsible Table of Contents in WordPress?

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.

How to Create a Collapsible Table of Contents in WordPress?

About the Author

Photo of Aditya Sharma CMO of Nexter
CMO at POSIMYTH Innovations · Nexter · 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!