How to Add Automatic Table of Content in Blogger | Latest Automatic Table of Content in Blogger

 

Hi to all, here I am going to tell you all about how to add latest automatic table of contents in your blogger website easily in just few minutes.


Learn how can add an automatic table of contents to your blogger website. Just follow the below steps and setup the code as mentioned below.


Here you need to add the CSS and JavaScript code in the theme file and then add the HTML code in the blog post to generate the Table of Contents (TOC).


You need to change the Post Body Id according to your theme, otherwise this code may not work in some cases.



Introduction



What is Table of Content ?

It is basically a quick link or jump link, helps the readers to skip to a specific part or heading with a single click.


Benefits of adding the table of content ?

When you writing long post nearly 2000 to 4000 words with multiple headings and sub headings, it will become difficult for the visitor to get clear understand the structure of the post.

You should know that if you written long article then the users attention might be low and f they found that the post is long then they bounce back to your post , but if your add table of contents in your post then at the beginning of the post they will jump to the section and read the required information and then if they found good content then they will read complete post.


There are so many SEO benefits by adding the table of contents in the blog post, it helps search engine crawlers to better understand about your article and displays rich snippets in the search results.


So read the article carefully and completely, if you miss any one step then you will get error while saving the code in your theme editor, so read the article completely.





Demo of automatic table of Contents



Table of Contents





Step to Add Latest Table of Contents in Blogger Website



Step-1: First of all you need to login to your blogger website dashboard by using your login credentials.





Step-2:  Click on Theme section -> Click on Arrow Icon -> Click on Back up -> click on Download Theme.





Step-3: Click on Theme Section -> Click on Arrow Icon -> Click on Edit HTML -> Blogger Theme Editor.





Step-4: Copy the below provided CSS and JavaScript code.





Step-5: Now paste the copied CSS and JavaScript Code above closing body tag or </body> tag.


Step-6: After adding the script, click on save button.


Step-7: Now you need to come back to blogger dashboard and then open the post where you need to add automatic table of content.


Step-8: Now copy the below provided code.





Step-9: Now go to dashboard -> Select Post to add TOC -> Click on Pencil icon -> Click on HTML View.


Step -10: Paste the copied code in the post i.e. you can add the code in any part of the blog post to show the table of content box in your post section.


Step-11: Click on update button.


Step-12: You have successfully added the latest automatic table of contents in your blogger website easily in just few minutes.




Note:


Basically to generate the table of content in the blog post, you need to add the code given in step-8 and need to paste the code in every blog post, where you want to add the table of content.


Here one thing to note that, if the table of content is not working then you need to change your post id.


You will get post by clicking on inspect element here you can see your post id and it is case sensitive.


In case of fletro pro or Medium ui theme the post id is id="postBody" and in other themes id may be id="post-body" and post id may differ based on the theme you are using.


After finding the post id you need to go to theme editor and search for closing body tag and search for query selector in the code pasted and replace the post with your theme post id carefully for example ( "#postBody" or "#post-body" etc.) and click on save button.


You can also further customize the table of content according to look and feel of your website by modifying the CSS code.





Conclusion


I hope that you have understood about how to add latest automatic table of content in your blogger website easily in just few minutes.





Next Post Previous Post

Cookies Consent

This website uses cookies to analyze traffic and offer you a better Browsing Experience. By using our website.

Learn More