How To Add Table Of Contents In Blogger? - [Update 2025]

how to add table of contents in blogger? how to create table of contents in blogger? how to make table of contents in blogger? imamuddinwp.

How To Add Table Of Contents In Blogger? - Introduction

When you write or publish a post or article to your post, if it has a Table Of Contents aka TOC; the post looks more professional and also creates SEO value. In this post, I'll try to cover how to add a table of contents TOC in blogger posts.

Table Of Contents...

How To Create Table Of Contents In Blogger?

For Good ranking, it's very important and also Good for SEO. I think it is very important for all bloggers who have a blog on the blogger platform. So Let's start to know how to add the TOC table of contents to your blogger post.

how-to-add-table-of-contents-in-blogger

What is a Table Of Contents - TOC?

Whenever you are reading this paragraph, I think you have already noticed 'Table Of Contents TOC' in this post! And it is also a Clickable Table Of Contents! Right? By the way, in general, the title of the paper at the very top, followed by the chapter names and subtitles in chronological order is known as Table Of Contents. So a table of contents in blogger means basically a quick link or a jump link that helps the readers to skip to a specific part or heading with a single click. It highlights the parts of the blog post in order to improve the user experience.

How to Use Table of Contents on the Website?

Based on the website platform, there are many ways to add TOC to different websites. As an example, In the WordPress platform, there are many plugins for the table of contents like:

Nowadays like RankMath most of the popular SEO Plugins offer you to use it.

In the blogger platform, some premium blogger templates allow to use of Table Of Contents; But in this post, I'll describe how to add the table of contents to your blogger post for free.

Table Of Contents In Blogger - SEO-Value

As you may know 'Content Is King!' or content is most important for SEO, search engines won't have enough information to index your web pages correctly and help you rank if you don't have content. Adding a Table of contents (TOC) to your blogger blog post will improve SEO in many ways like improvement of the usability of your post, once it's easier for the reader to see the data you cover in your post and supply a way for the reader to jump to sections of interest, the reader can spend more time on your page.

A blog post with a 'Table Of Contents' has a more professional appearance, stunning, and Eye-Catching look than a post without one.

A good table of contents will be easy to read, accurately formatted, and completed last so that it is 100% accurate to readers. So, I think you would not skip TOC to your blog post.

Get Jump Links in Google Search

As per the experiences of professional SEO experts, Google may include a 'Jump To' link in the SERP when it finds a table of contents in an article. It helps to improve CTR tremendously. Google treated it at its discretion, like rich snippets, by simply including a table of contents, there is no guarantee that you will get the 'Jump To' links. It is actually very beneficial especially for the large article with multiple headings.SEO Experts strongly recommend using the 'Table Of Contents' in post for your website's visitors.

Advantages Of Using Table Of Contents TOC In Blog Post

In a blog post, table of contents links are not new either but one that provides several values regardless of how search engines include them in SERPA well-planned TOC can help us below ways:

how-to-create-table-of-contents-in-blogger
  • Increase user experience to your website.
  • Show your contents well-structured, and well-formatted.
  • Helps to navigate easily between different content parts.
  • Increase CTR from search
  • Provide a clear and easy road map to visitor

How to add a simple table of content in blogger posts?

So, now we will follow below simple guide to add a TOC to our blogger post. Get set ready to do it correctly by following some easy steps.

Disclaimer:

Before you apply these steps, you should take a backup to your blogger template. It's very simple to backup. You may read this to backup your blogger website: Back up or Import Your Blog. I have added the below image to understand how to back up your blogger template or blogger website from the blogger dashboard.

backup-blogger-website-imamuddinwp

Steps to create TOC In Blogger:

  1. Go to your blogger dashboard by login to the blogger
  2. Go to 'Edit HTML' from the 'Theme' option
  3. edit-html-blogger-template-blogger-theme-imamuddinwp
  4. Then search </head>
  5. After that Copy the following code and paste above </head>
<!-- Table of contents Javascript start-->

 <script type='text/javascript'>              
//<![CDATA[           
//*************TOC plugin by MyBloggerTricks.com           
function mbtTOC() {var mbtTOC=i=headlength=gethead=0;           
headlength = document.getElementById("post-toc").getElementsByTagName("h2").length;for (i = 0; i < headlength; i++)           
{gethead = document.getElementById("post-toc").getElementsByTagName("h2")[i].textContent;document.getElementById("post-toc").getElementsByTagName("h2")[i].setAttribute("id", "point"+i);mbtTOC = "<li><a href='#point"+i+"'>"+gethead+"</a></li>";document.getElementById("mbtTOC").innerHTML += mbtTOC;}}function mbtToggle() {var mbt = document.getElementById('mbtTOC');if (mbt .style.display === 'none') {mbt .style.display = 'block';} else {mbt .style.display = 'none';}}           
//]]>              
</script>
<!-- Table of contents Javascript end -->
  1. After that search (by typing 'Ctrl+F' in keyboard) ]]></b:skin>
  2. And copy the following code and paste above ]]></b:skin>
.mbtTOC{border:5px dashed dodgerblue;box-shadow:2px 0px 10px 4px silver;background-color:#f2f2f2;color:black;line-height:1.4em;margin:30px auto;padding:20px 30px 20px 10px; font-family:oswald, arial;display: block;width: 70%;}           
.mbtTOC ol,.mbtTOC ul {margin:0;padding:0;}
.mbtTOC ul {list-style:none;}
.mbtTOC ol li,.mbtTOC ul li {padding:15px 0 0; margin:0 0 0 30px;font-size:15px;}
.mbtTOC a{color:#0080ff;text-decoration:none;}
.mbtTOC a:hover{text-decoration:underline; }
.mbtTOC button{background:#f2f2f2; font-family:oswald, arial; font-size:20px;position:relative; outline:none;cursor:pointer; border:none; color:black;padding:0 0 0 15px;}
.mbtTOC button:after{font-family:FontAwesome; position:relative; left:10px; font-size:20px;}

Here I have attached an image for a better understanding of TOC in the blogger theme!

table-of-contents-toc-in-blogger-theme-imamuddinwp
  1. After That search for  <data:post.body/>

Note:- You might found more than one code, simply replace the codes with the following codes:

<div id="post-toc"><data:post.body/></div>
  • After doing all the steps, just save the theme.
  • Go to Blogger Dashboard.
  • Choose your desired post to apply to TOC.
  • Open in HTML View
  • Choose the right place to show TOC.
  • Copy the Code and paste those places.
<div class="mbtTOC"> 
<button onclick="mbtToggle()">Table Of Contents ✓</button>
<ul id="mbtTOC"></ul>
</div>
  • After that, go to the bottom of the post by scroll down.
  • Be sure the post is in HTML view
  • Copy the java scripts
  • Paste the code under the post where the post will end.
<script>mbtTOC();</script>

See the below image for a better understanding of the HTML view from my blog post:

blogger-theme-post-html-view-imamuddinwp

Also please see it:

table-of-contents-toc-in-blogger-post-imamuddinwp

After completing all these steps, just save your post. You Are All Done! Now you can see the Table of Contents -TOC in Your Blog post. Here I have attached a screenshot of TOC from this post.

table-of-contents-toc-in-blogger-post-imamuddinwp-

Pro Tips For Smooth Scrolling Of TOC

For easy smooth scroll and eye-catching scroll, you can easily add 'smooth scroll effects' to the Table of contents. It will also work as a smooth scroll on the whole website for any jumping links.

You may also like...

Just add the below CSS file to your blogger theme above the ]]></b:skin> tag or paste it in the "add CSS" section of your blogger theme customizer.

html{
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion:reduce){
	html{
		scroll-behaviour: auto;
	}
}

Conclusion - How To Add Table Of Contents In Blogger?

If you face any problems in adding a Table of contents in your blogger post, just comment here with details. I'll try my best to solve it asap. Thanks for reading this post, powered by Imam Uddin; imamuddinwp.

About the author

Imam Uddin
Howdy! It's me! Imam Uddin, imamuddinwp. A passionate SEO Expert, Freelance Digital Marketer, Shopify Expert, and Web Designer. Founder Of NextGen Digital. Find me in google by 'imamuddinwp'.


13 comments

  1. Krish Dev
    Krish Dev
    https://krish.dev
    1. Freelance Digital Marketer
      Freelance Digital Marketer
      Hi @Krish, pls don't share your website link here. If you have any problem to your website, pls comment here with problem details. We will try our best to solve your problem. Thank you for being with us.
  2. Krish Dev
    Krish Dev
    Visit www.krish.dev!
  3. Anand
    Anand
    This comment has been removed by the author.
  4. Anand
    Anand
    This comment has been removed by the author.
    1. janosik
      janosik
      HOW TO GET CROWN MAGIC ATM CARD

      UNLIMITED CASH I took the risk and in exactly 6 days later my card was delivered to my home address here and that same evening I used the card to take out $5000 for a start. It's been just 3 weeks and my life has taken a new shape. I simply want to say thank you to this electronic company and help spread their fame abroad. If you ever are in need of this card details on how to get yours today, YOu can also Whatsapp: +12134218707 email crown_technology@yahoo. com
  5. Anand
    Anand
    nice work sir.. i implement your toc code and it works perfectly at Studyy.in
    1. Imam Uddin
      Imam Uddin
      Hi @Anand, Thank you very much, stay tuned. To get more tricky trips from me, find me in google by 'imamuddinwp'. Thank you again.
  6. Izz Net
    Izz Net
    goog
  7. Designing Bundle
    Designing Bundle
    Hi Guys,
    We Are Provide Gpl Plugins And Themes Very Cheap Price at GPLPLUS.
  8. James
    James
    We are Providing Themes and Plugins at very cheap Prices on Realgpl
  9. Fortune
    Fortune
    What of people using android phone how can we click that on our keyboard
    1. Imam Uddin
      Imam Uddin
      Dear @Fortune, Very nice and interesting question. But no worry. We strongly believe that there is a keypad in your Android phone , right? Back to here after checking. Thank you!
Pls, don't spam or share any sensitive or personal details here. Thank you for being with us.

Join the conversation