In this tutorial, we will show you how you can add the Easy Table Of Contents in the Sidebar by using 2 different ways.
Table Of Contents
The first way to add TOC in the sidebar is by using the Shortcode.
Step 1: Go to the Easy Table Of Contents settings under the Settings section which you will find in the dashboard on the left side of your window.

Step 2: Now Scroll down to the bottom of the page and here you will find the shortcode “ez-toc”, copy the shortcode from there.

Step 3: Now go to Appearance > Widget, here you will find the Sidebar section of your theme.

Step 4: Click on the “+” icon to add a shortcode block, paste the shortcode that you copied from the TOC settings section and click on Update


Output:

The second way to add the TOC in Sidebar is by using the TOC block.
Adding the TOC in the sidebar using the TOC block is similar to adding the TOC using the Shortcode, you just have to use the TOC block instead of using the Shortcode and click on update.


Output:

Note: The output may appear differently based on the theme that you are using.
That’s it for this tutorial!
We hope we’ve cleared your doubts in case you have any feedback or questions, then please share them in the comments section below.