Adding a table of contents to your WordPress posts and pages helps your readers to easily navigate in a long article and helps Google to create structured links in search results. It is one of the best things you can do to improve user experience in long articles posts by giving your readers a structured way to navigate your pages and posts.
In this article, we’ll show you how to manually add a table of contents for posts and pages without having to download a plugin.
How to add table of contents in WordPress pages and posts?
Adding table of content to a WordPress post or page involves three streps. First, you need to add the H2/H3 title in the body of the post.
Then, click on the text tab where you can see the H2/H3 title. You’ll need to add id=”title” after the <h2. In our case, id=”Add Table of Contents in WordPress Posts or Pages”.
Almost done. The last step you’ll need to do is to link the title in the table of contents to the H2 in the body of the article. Go back to the visual format and add the H2 title as one of the titles in the table of contents. Note that in terms of SEO you do not want to upload the table of contents in H2/H3 format so you won’t have two similar H2 titles in the article.
In order to link the title in the table of contents to the H2/H3 title in the article, you must add the same title with # before the title in the link box in the same way you insert any link. See the image below.
That’s it. I hope this article helped you understand how to add table of content to a WordPress posts and pages. Please add your comments, if I missed anything.
- The Squid Game Shows Us Why Billionaires Are Dangerous to Society - October 11, 2021
- How to Book Flights with Cryptocurrencies? - October 4, 2021
- Here’s Why the Israeli Shekel is One the Strongest Currencies in the World - October 3, 2021