How to Add Automatic Table of Contents in Google Blogger full guide
How to Generate Automattic Table of Contents in Google Blogger | Hello Dosto I have been able to get you a lot of new or very useful articles, if you are using a google blogger to add more content to the content of the content, or if you have any questions, please help by using the plugin I have been able to add a description of a particular article to my blog,
Table of Contents in Google Blogger
Google Blogger has added text to the table of content, but if I have to add wordpress to it, it is easy to add, which is what I can use to add a simple plugin, or to add some text to my blogger. I have a nice code, I have used you.
Yah code is originally written, but if you want to get a real code, you can click on the link, then you can add some code to the same code.
Step by Add to Table of Contents in Google Blogger
- Open Blogger's dashboard.
- Click here for the theme
- Click here to edit HTML text.
- Try the HTML editor to open your keyboard instead of Ctrl + F or / head search.
- I would like to paste your CSS code into the main header.
- Find key Ctrl + F or keybar / body search.
- Bad me javascript code for body / body to paste it.
- The final step is to paste a single text into a single text in the HTML code.
- If you do not have any questions, please watch the video.
CSS
<style>
article {
max-width: 50em;
background: white;
padding: 2em;
margin: 1em auto;
}
.table-of-contents {
float: right;
width: 40%;
background: #eee;
font-size: 0.8em;
padding: 1em 2em;
margin: 0 0 0.5em 0.5em;
}
.table-of-contents ul {
padding: 0;
}
.table-of-contents li {
margin: 0 0 0.25em 0;
}
.table-of-contents a {
text-decoration: none;
}
.table-of-contents a:hover,
.table-of-contents a:active {
text-decoration: underline;
}
h3:target {
animation: highlight 1s ease;
}
@keyframes highlight {
from { background: yellow; }
to { background: white; }
}
</style>
JavaScript
<script type='text/javascript'> var ToC = "<nav class='table-of-contents' role='navigation'>" + "<h2>Table of Contents:</h2>" + "<ul>"; var newLine, el, title, link; $("article h3").each(function() { el = $(this); title = el.text(); link = "#" + el.attr("id"); newLine = "<li>" + "<a href='" + link + "'>" + title + "</a>" + "</li>"; ToC += newLine; }); ToC += "</ul>" + "</nav>"; $(".all-questions").prepend(ToC); </script>
HTML
<article>
<div class="all-questions">
</div>
</article>
# Final Word
Friends, I hope Phineoya may have liked this article, if you come, then share what things are so that your friends also learn something new.
Also, Read
ConversionConversion EmoticonEmoticon