Are you wondering in search of the question: How to add table of content in (blogspot) blogger? or the Script for Table of Content in Blogger. You have come to right spot. Here we have provided with the best of the script codes for bloggers, blogspot guide, templates, wordpress premium themes, wp plugins and mod apps. You can find all of this material totally in free.
![]() |
Table of Content In Blogger (Script) |
Table of Content in your (Blogspot) blogger help you to stand out from the other competitors. Although, many of the experts don't recommend blogspot blogger for building up the site. But what could be done, when you don't have enough expenditures for a secure and fast loading hosting. Normally you get hosting's in cheap prices, but there could issues in up time, loading time and others.
In such a case, I recommend you to use blogspot blogger instead of WordPress or other CMS. At least, with blogger, you can find the fastest loading speed and light weight site.
You are having a question, that there are no enough plugins for SEO in blogger. Don't worry, there are adds on, which could be added as a script to increase your site functionality.
The site you are visiting is an example to you. Although, we have used a lot of personal adds on script, premium theme and much more on this site. But we have tried to provide you guys, who are beginner in blogging with these script and codes. We have also provided with the premium blogger templates which are free to download from our site.
Now get back to topic and seek,
What is Table of Content?
Table of content is a quick access to the topic headings and main points, by adding anchor points, leads to jump to the required heading or paragraph. In, simple it is the jumping anchor for fast access across the content.
Hopefully, you get the definition. But still confused, let's have a look at the picture given below;
Blogger Example |
How Table of Content Help in SEO?
How to Add Table of Content in Blogger?
Step One 1, Opening the Blogger Dashboard and Theme Edit:
1st Step, Opening the Edit HTML option |
Now move to the next step, that is
Step 2, Addition of functional Html code:
<link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/><link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/><script type='text/javascript'>//<![CDATA[//*************Plugin by TechyNoobs.comfunction avsTOC() {var avsTOC=i=headlength=gethead=0;headlength = document.getElementById("post-toc").getElementsByTagName("h3").length;for (i = 0; i < headlength; i++){gethead = document.getElementById("post-toc").getElementsByTagName("h3")[i].textContent;document.getElementById("post-toc").getElementsByTagName("h3")[i].setAttribute("id", "point"+i);avsTOC = "<li><a href='#point"+i+"'>"+gethead+"</a></li>";document.getElementById("avsTOC").innerHTML += avsTOC;}}function avsToggle() {var avs = document.getElementById('avsTOC');if (avs .style.display === 'none') {avs .style.display = 'block';} else {avs .style.display = 'none';}}//]]></script>
Step 3, Add styling by adding CSS code:
.avsTOC{border:5px solid #EE5535;box-shadow:1px 1px 0 #EDE396;background-color:#FFFFE0;color:#707037;line-height:1.4em;margin:30px auto;padding:20px 30px 20px 10px;font-family:oswald, arial;display: block;width: 70%;}.avsTOC ol,.avsTOC ul {margin:0;padding:0;}.avsTOC ul {list-style:none;}.avsTOC ol li,.avsTOC ul li {padding:15px 0 0;margin:0 0 0 30px;font-size:15px;}.avsTOC a{color:#EE5535;text-decoration:none;}.avsTOC a:hover{text-decoration:underline; }.avsTOC button{background:#FFFFE0;font-family:oswald, arial; font-size:20px;position:relative;outline:none;cursor:pointer; border:none;color:#707037;padding:0 0 0 15px;}.avsTOC button:after{content: "\f0dc";font-family:FontAwesome; position:relative;left:10px; font-size:20px;}
Step 4, assign the post body with the the script id:
<div id="post-toc"><data:post.body/></div>
Step 5:
Showing up the Table of Content in a Blogspot Post:
<div class="avsTOC"> <button onclick="avsToggle()">Contents</button> <ol id="avsTOC"></ol> </div>
<script>avsTOC();</script></div>
Video on How to add table of content in Blogger?
What are featured snippets?
Problem in showing headings in blogger TOC:
Here is the list for the most common issues, you could face while showing up the table of content.
- Script is not added in a correct way in your template.
- Styling is not so beautiful, as you make some mistake in adding the CSS.
- Script is not working, as you have not triggered it by putting in the post html
0 Comments