How to add Automatic Table of Contents in Blogger Post

 

Hi to all, In this article I am going to tell you all about how to add automatic table of contents in blogger post easily in just few minutes and increase your blogger user experience.


So read the below provided steps carefully and completely, if you miss any one step then you will get issue while saving code, and also backup your code before adding the code, if any issues occurs then you can replace your code without any damage.




What are the main features of automatic table of contents ?

There are various features of table of contents in blogger website and some are as follows:

  • It is SEO Friendly.
  • It loads fast.
  • It is Responsive.
  • It decrease your website loading speed.
  • It will show, where yo want to place.
  • Adds unique ID in each headings.


Read the below steps completely to get clear idea about adding the code in your theme.



How to add Automatic Table of Contents in Blogger Post
How to add Automatic Table of Contents in Blogger Post 




Steps to add Automatic Table of Contents in Blogger Post



Step-1: Login to your blogger website dashboard by using your login credentials.


Step-2: Now choose your blog -> Theme option -> Customize -> Backup Theme code.





Step-3: Click on Customize -> choose Edit HTML -> Proceed to theme.





Step-4: Press CTRL + F and search for </head> tag and copy the below given code and paste it above the </head> tag.

The below provided code works for h2 headings, if you are using h3 headings then you need to replace h2 with h3 from the below code.






Step-5: Now again press CTRL + F and search for ]]></b:skin> tag and copy the below code and paste it above the ]]></b:skin> tag.






Step-6: Now again search for <data:post.body/> and replace this code with the below given code.






Step-7: Click on save button.


Step-8: Now go to your post and paste the below provided code

Note: Here you can see two codes i.e. CSS and JavaScript codes, you need to add CSS code, where you want to show Table of Contents, and JavaScript code at the last of your post.






Step-9: Now after adding the two codes update your post.


Step-10: You have successfully added automatic table of contents in your blogger website.





Note:

If you get any issue while saving the code, then you need to backup your old code and follow the same steps again.


If you need to change the background color then you, need to edit the code provided in step-2.


If you want to customize automatic table of contents then you can search various html color codes from google and add them in the code provided in the step-2.




Conclusion:



If you follow all the above provided steps then you can easily add automatic table of contents 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