Do you want to create a sticky table of contents in WordPress? A table of contents helps users navigate your content easily, and making it sticky ensures it stays visible as they scroll, enhancing the overall browsing experience and accessibility.
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 Content 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.
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.