How to Add A Table of Contents in WordPress Sidebar – 3 Easy Steps

how to add a table of contents in WordPress Sidebar

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:

  1. Go to your WordPress dashboard.
  2. Navigate to Plugins → Add New.
  3. Search for Ultimate Blocks.
  4. Click Install Now, then click the Activate button.
how to add email icon to WordPress websites

Once you have Ultimate Blocks running, you are ready to use its awesome Table of Contents block.

Step 2: Add the Styled List Block

  1. Edit the page or post where you want to place the email icon.
  2. Click the ➕ Add Block button.
  3. 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.

  1. Select the Block and go to Block Settings.
  2. Enable the option “Sticky.”
  3. Set the Position to 100%, though you can adjust the width.

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

Your email address will not be published. Required fields are marked *

🔥 One Plugin to Replace 20+ Plugins
This is default text for notification bar