How to Create a Sitemap or Table Of Contents Page For Blogger

Sitemap (Table of Contents) is a page on your blog where all posts are arranged in accordance to their type, and it shows the links to all posts published on your blog so far. Sitemap (Table of Contents) is important for all bloggers to have on their blog. This make blog look professional, and it helps your blog visitors and readers to navigate through your blog post.


Here is a script that saves time and helps to update all new posts made on your blog to your sitemap (Table of Contents) page automatically. This script will display all posts made on your blog under their specified categories (Labels). This widget also comes with a CSS & Jquery to make it attractive.

Steps To Add Automatic Sitemap (Table of Contents) Generator

1. Add the CSS code below to your template. This can be done by going to Blogger >>> Template, use (CTRL+F) to search for ]]></b:skin> in your template and finally paste the CSS code below before ]]></b:skin> tag.

/*--------JustNaira TOC-----*/
vertical-align: baseline;
margin: 0 2px;
outline: none;
cursor: pointer;
text-decoration: none;
font: 14px/100% Arial, Helvetica, sans-serif;
padding: .5em 2em .55em;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
border-radius: .5em;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 1px 1px 4px #AAAAAA;
box-shadow: 0 1px 2px rgba(0,0,0,.2);
color: #e9e9e9;
border: 2px solid white !important;
background: #6e6e6e;
background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
background: -moz-linear-gradient(top,  #888,  #575757);
filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
    color: #fef4e9;
    border: 2px solid white !important;
    background: #1C8DFF;
    background: -webkit-gradient(linear, left top, left bottom, from(#9dc2e7), to(#438cd2));
    background: -moz-linear-gradient(top,  #9dc2e7#438cd2);
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#9dc2e7', endColorstr='#438cd2');

Save your Template after inserting the CSS

2.    Create a Page: to create a new page, go to Blogger >>> Pages >>> New Page. Now give the page a title such as “Table of Contents” “Site Maps” or any title you wish. Click EDIT HTML button on the compose mode screen, now paste the code below in it.

<script src=""></script>
<script src=";alt=json-in-script&amp;callback=loadtoc"></script>
<script type="text/javascript">
var accToc=true;
<script src="" type="text/javascript"></script>

Make sure you change to your own blog URL and then publish the page. Visit the page link to view your awesome blog sitemap (Table of Contents).

Sitemap (Table of Contents) Customization

The color of the category when in active mode is blue while when it is inactive it appears as dark gray.

So to change the active mode, simply change #9dc2e7 and #438cd2. Here is a color generator tool that will aid you to select the best color code that you love.

If you encounter any difficulties in the process of setting up your blog Sitemap, don’t hesitate to use the comment box below.

I love sharing my knowledge with others. Feel free to contact me with any questions you may have. Please subscribe to the newsfeed and get updates through email, share this article with friends, or leave a comment below. New users can read about me HERE

Share this on:Share on Facebook2Tweet about this on TwitterShare on Google+0Pin on Pinterest0Share on StumbleUpon0Digg this


  1. Victor Noah says:

    I tried implementing it in my blog , but not working. Is there any alternative way of adding the sitemap to Blogger? –

  2. Oyeyemi Victor says:

    Wow, it works great sir, thumbs up!!!

  3. Odebright says:

    Olu, please I created the page, but my sitemap is just blank, and i have created two post to test it
    Please what could be the cause. url is

  4. Thank you very much…i just done it on my blog…God bless you

  5. Androidvillaz says:

    Thanks for this it working fine at

  6. Blogger Labil says:

    It’s works!
    Thank you so much.

  7. wao thank you very much bro…..i always dont like the idea of editing my template before doing things like this bro, when i first i came to your site through google i closed the tab after going through the tutorial but i came back here when all the methods were not working for me but thankfully yours is working. God bless you for the tutorial, i have been looking for this for the past one month or so. thank you……..

  8. GreenBrain says:
  9. grabslife says:



  10. grabslife says:

    thank you bro its helps me alot to sane my time

  11. It is not working after inserting the codes.

  12. Thanks, this works fine and perfectly for me.

  13. Hi there, Mine works but it’s not showing the COLOR MODE:
    Please see it here!!!:)

    I’m waiting for your answer….

  14. Thanks, that’s really good looking sitemap.

    Its my sitemap table. well u can see from the link that all the blocks are active at once what to do..

  16. I followed the directions exactly, but I’m having a problem similar to the first commenter: the majority of the time, all the labels are expanded at once with all posts showing. Only about 1 out of 20 times that I refresh the page will it show the labels un-expanded like in your demo pic. I tried it in all browsers and am having the same problem in each one. Is there anything I am doing wrong?

  17. Geo Nikola says:

    hi,s there anyway to show specific labels and not all the blog content?

  18. @Silvia Masaracchio, Change max-results=1000 in the second code to 2000.

  19. Silvia Masaracchio says:

    Hy and thank you for your amazing widget!!!
    it works really good, but I still have a problem!! My blog has more than 1000 posts, and this widget shows just last 1000, can i improve that limit? Thank you anyway

  20. Thank you so much, your instructions worked magnificently.

  21. @Md Azeem, Search for font-size:12px; in the css code and then change its value from 12 to desired font size value.

  22. How can i increase the font size here??


  23. this is awesome , thanks a lot brother

    i re-designed it

  24. @Shubham Chaurasia, try and follow the process outlined duly.

    @ Onosike Jerry E, glad you love it.

  25. nice

  26. Shubham Chaurasia says:

    hey the sitemap is not showing in my blog !

  27. @Touchwood, I have checked your page and saw it. Just leave it like that.

  28. Touchwood says:

    I tried it several time. Please look at this –

  29. @Touchwood,try and follow the steps carefully because this tutorial was used to set the demo page.

  30. Touchwood says:

    Thank you soo much!! BUT, Not working as given in DEMO. All the posts are opened at once. Need Help!!

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.