
Readers often feel lost scrolling through endless text on long posts. That is where a table of contents (TOC) becomes incredibly useful.
A table of contents improves navigation and keeps readers engaged by helping them jump straight to the sections they care about.
While adding a TOC inside a post is common, placing it in the sidebar can be even more powerful. It stays visible as readers scroll, offering quick access at any point. If you use the WordPress Block Editor, the easiest way to achieve this is with the Ultimate Blocks plugin.
Check out the demo below.

Now, let’s walk through how to add a Table of Contents to your sidebar in a few simple steps.
Supercharge Your WordPress Block Editor!
How to Add A Table of Contents in WordPress Sidebar
Ultimate Blocks has 25+ awesome blocks to make your content engaging. One of the blocks is the Table of Contents, which we will use today for our tutorial.
Step 1: Install and Activate Ultimate Blocks
If you haven’t already installed Ultimate Blocks, follow these quick steps:
- Go to your WordPress dashboard.
- Navigate to Plugins → Add New.
- Search for Ultimate Blocks.
- Click Install Now, then click the Activate button.
Once you have Ultimate Blocks running, you are ready to use its awesome Table of Contents block.
Step 2: Add the Styled List Block
- Edit the page or post where you want to place the email icon.
- Click the ➕ Add Block button.
- Search for Table of Contents and select the Block.
Once the block is added, it will automatically load all the headings of your post.
Step 3: Make the Table Sticky
Since the Table of Contents doesn’t support the WordPress sidebar, you must make it sticky to show it like that.
- Select the Block and go to Block Settings.
- Enable the option “Sticky.”
- Set the Position to 100%, though you can adjust the width.
Tips: This method applies when you already have Ultimate Blocks and don’t wish to use another third-party plugin. Besides, adding more plugins to a website makes it slower.
And that’s it. Your work is done. Your table of contents will appear on the right side.

Final Thoughts!
Adding a Table of Contents to your sidebar with Ultimate Blocks is easier than it sounds. Plus, it gives your readers a better way to move around your content without getting frustrated.
Whether you are blogging, sharing guides, or building resources, this little tweak can make a big difference.
Give it a try and see how much smoother your site feels!
Learn More about Table of Contents!
Leave a Reply