Skip to main content

Add a Table of contents in blogspt---Step by Step

 

Add a Table of contents in Blogspot | The easiest method you can find

adding a table of contents to his blo
Image credit:pixbay.com


So you are here to read my blog post and I can easily conclude that you definitely want to add a table of contents to your blog at Blogspot. As blogger doesn't support plugins like WordPress So, it sometimes becomes very difficult to add widgets like a table of contents in Blogspot if you don't know much codings.

But don't worry because here in this post I am going to tell you a method to add a table of contents in Blogspot with just little or no coding skills. And I hope that at the end of this post you will be able to add a simple and decent table of contents to your blog posts.
 But let's first discuss the advantage of the table of contents as there are many SEO as well as user experience benefits of the table of contents.

SEO advantages of Table of contents.

We all know very well that all search engines including Google always have some special love for detailed as well as structured blog posts and of course by adding a table of contents to your blog posts, you are making your blog posts structured which will directly affect your rankings in Google search engine result pages (SERPs).

Improve in user experience...

User experience is always been an important part of SEO  but most people just don't focus on these little things and that's why just can't rank high in SERPs. Adding a table of contents in your blog post help viewers to easily navigate through your blog posts and read, only what they want to read. As users will have a good experience on your site you will experience fewer bounce rates which will help you rank higher and higher in SERPs.


Adding a table of contents in Blogspot (blogger).

By the end of this post, you will be able to add a TOC like this to your blog.
A table of contents which you will be able to upload by the end of this blogpost.
So let's get started by adding a table of contents in your blogposts at Blogspot.

Step 1:  Copy this CSS code 

 /* Starting of TOC CSS Codes */
.mb-toc {
 border: 2px solid #ddd;
 background: #ececec;
 padding: 5px 10px 10px;
 margin: 15px 0;
 font-size: 18px;
 overflow: hidden;
 border-radius: 5px;
}
.mb-toc h2 {
 margin: 10px 20px;
 font-size: 25px;
}
.mb-toc ul {
 margin: 0;
 list-style: none;
 float: left;
 width: 100%;
}
.mb-toc ul ul li a {
 padding-left: 45px;
}
.mb-toc ul ul li {
 background: none;
}
.mb-toc li {padding-left: 10px !important;
 list-style-type: none;
 position: relative;
 margin: 0;
 cursor: pointer;
 background: #f7f7f7;
 float: left;
 width: 90%;
}
.mb-toc li:nth-child(odd) {
 overflow: hidden;
 clear: both;
}
.mb-toc li:nth-child(odd) li:nth-child(odd) {
 background: none;
}
.mb-toc li:nth-child(even) {

 overflow: hidden;
 clear: both;
}
.mb-toc li:nth-child(even) li:nth-child(odd) {
 background: none;
}
.mb-toc ul>li:hover>a {
 background: #fffcd1;
}
.mb-toc li a {
 color: inherit;
 padding: 8px 0 8px 10px;
 border-bottom: 1px solid #ddd;
 width: 100%;
text-decoration: none;
}
/* Ending of TOC CSS Code */ 

Step 2: In the left-hand sidebar go to the themes option and click on customize.
Infographic: Click theme and than customize



Step 3: Click on advance and then choose the " Add CSS" option.

Click on advance and than add CSS option



Step 4: Add the above CSS code in the given blank and then click the save button.
Add CSS in the given blank




Now, it's time to add the Table of contents to your individual posts which is pretty easy but can take some time.

Step 1: Go to the post in which you want to add a table of contents.

Step 2: Switch to HTML view.


Step 3:  Copy and paste the following code exactly where you want your Table of Contents to appear.
<div id="toc" class="mb-toc">
 <h2>Table Of Contents</h2>
 <ul>
        <li><a href="#headingid1">1. Your heading text </a></li>
        <li><a href="#headingid2">2. Your heading text</a></li>
        <li><a href="#headingid3">3. Your heading text</a></li>
<li><a href="#headingid4">4. Your heading text</a></li>
        <li><a href="#headingid5">5. Your heading text</a></li>
</ul>
</div> 
Paste the code where you want the Table of contents to appear.

 


Step 4: Search for h2 or h3 headings and give them a unique id in this way 



Step 5: Replace "headingid" with the unique id and Your heading text with the Heading and Boom... you have successfully added a table of contents in your blog posts and now your viewers can easily navigate through your article.

Table of contents after entering codes



So, now I hope that you can easily add a table of contents to your post in Blogspot and If you have any follow-up questions you can contact me via comments...


Author: Huzaifa Azhar

Comments

  1. Is there any other method to add a TOC in blogspot?

    ReplyDelete
    Replies
    1. Yes,there are some other methods as well, to add a table of contents in blogger, but the above method (I think) is the most easy one...

      Delete

Post a Comment

Popular Posts

6 killer ways to boost Blogspot SEO

6 ways to optimize  blogger for SEO! Last updated: 6/8/2021 Creating a blog is not enough for receiving organic traffic. You need to learn Search Engine Optimization if you want your blog to be found organically. And in this SEO Blogspot tutorial , I am going to teach you to optimize blogger for SEO Yes, today I am going to teach you to optimize blogger for SEO  and I hope that after this SEO Blogspot tutorial you are going to receive some organic traffic from search engines! So let's optimize " Blogger for SEO"... Table Of Contents 1. How blogger is already SEO friendly 2. How to optimize blogger(Blogspot for SEO to rank on Google (blogger SEO optimization) 3. Enable and add search descriptions for posts 4. Create custom permalinks for posts 5. Internal linking 6. External linking 7. Submit your already generated sitemap to Google Search Console 8. Summary

Blogspot vs WordPress.com--Which one is better?

Blogspot vs WordPress.com, Where your blog should live? When aspiring bloggers embark on their journey, many seek free blogging platforms that cater to their needs. Among the multitude of options available on the web, two platforms consistently dominate the landscape: Google Blogger and WordPress.com. In this article, we will delve into a comprehensive comparison of these platforms, shedding light on the extent of their free offerings. By exploring the unique features and limitations of Blogger and WordPress.com, we aim to provide valuable insights to aid you in your selection of a suitable free blogging platform. WordPress.com vs Blogger(Blogspot) Table Of Contents 1. Storage limit 2. Themes/design customization 3. Analytics 4. Unlimited Bandwidth 5. Monetization options 6. Ads on your site... 7. Plugins--to customize your site 8. Custom domain 9. Free SSL certificate 10. SEO advantage

What is keyword and keyword research? Learn about them

Credit: Pixbay.com What are keywords in SEO-How to find them with keyword research! The keyword is a term mostly used in digital marketing. Digital marketers use keywords to define search queries. If you want to get some organic traffic from search engines then first you'll have to find the keywords your audience type into search engines. But how will you do this? You can do this with keyword research! So, if you want to learn What are keywords and How to do keyword research then stick to this article till the end! What are keywords in digital marketing and SEO? Keywords are the words or phrases that people type into search engines to find what they are looking for! As the word phrases suggest keyword is not necessarily one word, a complete sentence may also be a keyword. Suppose you are looking to buy a new trouser...You might type something like this into Google. "Best trousers for men" Yeah! it is not a word but a complete phrase, but yes, it is still a keyword. Why