20 May 2022
Have you ever stopped reading a post because it was too long or couldn’t find the section you wanted to read? This could be solved if the author had created a table of contents.
Including a table of contents in your site’s posts allows you to assess the structure of large posts and helps with SEO. This functionality will improve the user experience by allowing readers to jump to relevant sections of your post without scrolling.
In this post, we will show you two ways to create a table of contents for a WordPress site, using a plugin or without a plugin. We also show the best table of contents WordPress plugins for your reference.
A table of contents (TOC) allows readers to quickly jump to relevant sections of a WordPress post, which can increase readability – especially for long-form content.
Including a table of contents improves search engine optimization as well. It may, for example, reduce your website’s bounce rate by allowing users to quickly navigate to the sections that answer to their search intent.
Additionally, TOCs might help in making your web pages appear more attractive on search engine results pages (SERPs). Including a table of contents allows Google to automatically generate jump links to different sections of your post.
WordPress has added a new HTML anchor option that allows you to add anchor links in WordPress. Using this option, you can quickly create a table of contents without using a plugin.
Let’s see how it works.
At first, we will be adding HTML anchors to the headings. Select a heading and then click on the Advanced tab from the right-hand side options. Then, in the HTML anchor box, type the anchor text.
Do the same thing with the other headings.
Now let’s create a list of contents. You can use the List block to make a list.
Once your list of contents is ready, you can add anchor links. Select a text and link it with a # right before the anchor text.
Do the same thing for other lists, and your table of contents is ready.
Although this is a simple process, it does require some HTML and CSS knowledge. If you’re not comfortable with coding, you may add a table of contents to your WordPress posts and pages using a plugin.
Manually creating a table of contents may be time-consuming for large posts with various headings. Fortunately, a WordPress plugin can help you with this.
For this post, we will use the Easy Table of Contents WordPress plugin to create a TOC in WordPress.
First, install and activate the Easy Table of Contents plugin. For more in detail, see our guide on how to install a plugin in WordPress.
After activation, navigate to the Settings » Table of Contents page. From here, you can manage general settings for the table of contents like selecting a position, choosing a label for the container, etc.
You can also enable or disable the table of contents auto-insertion for each post type. If you enable the plugin, it will add a table of contents to any article with more than four headings. You can adjust that number to whatever you like.
After that, you can change the appearance of the table of contents box by scrolling down. From here, you may choose a theme, change the width and height, change the font size, or create a customized color palette for your table of contents box.
Then navigate to the advanced settings section. The default settings are enough for most sites, but you can review them to check if anything needs to be changed.
Lastly, click on the Save Changes button to save these settings.
Below are the best TOC WordPress plugins you can use to add tables of contents to your WordPress site.
Easy Table of Contents is a popular WordPress TOC plugin. It allows users to quickly create a table of contents without having to edit any HTML code. All you have to do is configure the plugin’s settings as described above, and the TOC will appear automatically on your post.
This plugin has no premium version. Hence all of its features and functions are available for free.
LuckyWP Table of Contents is a free TOC WordPress plugin that allows you to create a table of contents using Gutenberg blocks, sidebar widgets, or manual inserts (with a shortcode).
Furthermore, LuckyWP is also compatible with various WordPress page builder plugins. Users can change the width, hover colors, and font sizes of their TOCs to make them look better. It even provides a floating TOC option.
This plugin offers SEO-friendly features and a nice user experience, and all of the tools are free.
Table of Contents Plus is one of the widely used tables of contents plugins, with over 300,000 active installations.
This plugin makes it simple to create a content-specific index or TOC for long pages and custom posts. You may then put these indexes in the sidebar, making your website look like Wikipedia.
This is ideal for content-rich websites and is compatible with content management systems that organize dense information.
Ultimate Block is a multipurpose plugin that provides 47 different sorts of blocks for the WordPress Gutenberg editor, along with the table of contents block. All of the blocks are free and work with WordPress versions 5.0 and higher.
If you have extensive website posts with various content types, this plugin is a good choice. For example, it’s ideal for bloggers or marketers who want to include a call to action and testimonial blocks in addition to a table of contents block.
Heroic Table of Contents is a free ToC WordPress plugin that allows you to add an automatically created table of contents to your site.
This plugin reads your articles and creates a table of contents with the headings (h1, h2, h3, etc.). You can quickly hide any heading classes that you don’t want. This means you won’t have to manually generate your ToC or update it whenever you edit an article.
Furthermore, because it is built as a WordPress block, it is simple to drag and drop a Heroic ToC into your content.
Adding a table of contents to a WordPress website is a great tactic to reduce bounce rate and boost overall SEO.
Fortunately, including one in your WordPress posts is a simple process. As we discussed in this post, users can create a TOC manually or with the help of a plugin.
We also show some of the top table of contents WordPress plugins to get you started. If you’re new to WordPress, we recommend the Easy Table of Contents plugin because it’s free and simple to use.
We hope this post helps you learn how to create a table of contents in WordPress posts and pages. If you like this post, then read more posts like this on our website.