Add A Pretty Site Map to Blogger | Life and Linda

Subscribe to receive updated tablescapes, designs and more Click Here!

X

Add A Pretty Site Map to Blogger

This is an updated code to create a sitemap or Table of Contents
.


This is a cool sitemap for your blog. It's  an index with all of your posts .This is highly recommended for Blogger users.  It helps them to navigate easily around your blog.  I know we offer  navigations menus, in addition to the search button.  However this lists all of your posts together on one page.
Below is an example of what you will see...Of course this is mine, so it will shows your posts.


If someone wants to see all of your posts, they are listed as an index page, like a table of contents.
Whenever you write a new post with labels, they are added to this.  There is no need for you to do anything else.

To achieve this:  Create a new page and name it Sitemap or Table Of Contents


Click the HTML portion of the page and paste this code below in there.


<style scoped="" type="text/css">#bp_toc {background:#DC82BA;color:#666;margin:0 auto;padding:5px;}span.toc-note {padding:20px;margin:0 auto;display:block;text-align:center;color:#FAFAFA;font-family:'Trebuchet MS';font-weight:700;text-transform:uppercase;font-size:30px;line-height:normal;}.toc-header-col1 {padding:10px;background-color:#f5f5f5;width:250px;}.toc-header-col2 {padding:10px;background-color:#f5f5f5;width:75px;}.toc-header-col3 {padding:10px;background-color:#f5f5f5;width:125px;}.toc-header-col1 a:link, .toc-header-col1 a:visited, .toc-header-col2 a:link, .toc-header-col2 a:visited, .toc-header-col3 a:link, .toc-header-col3 a:visited {font-size:13px;text-decoration:none;color:#aaa;font-family:'Trebuchet MS';font-weight:700;letter-spacing: 0.5px;}.toc-header-col1 a:hover, .toc-header-col2 a:hover, .toc-header-col3 a:hover {text-decoration:none;}.toc-entry-col1, .toc-entry-col2, .toc-entry-col3 {background:#fdfdfd;padding:5px;padding-left:5px;font-size:89%}.toc-entry-col1 a, .toc-entry-col2 a, .toc-entry-col3 a{color:#666;font-size:13px;}.toc-entry-col1 a:hover, .toc-entry-col2 a:hover, .toc-entry-col3 a:hover{color:#e76e66;}#bp_toc table {width:100%;margin:0 auto;counter-reset:rowNumber;}.toc-entry-col1 {counter-increment:rowNumber;}#bp_toc table tr td.toc-entry-col1:first-child::before {content: counter(rowNumber);min-width:1em;margin-right:0.5em;}td.toc-entry-col2 {background:#fafafa;}#comments {display:none;}</style>  
<div id="bp_toc" style="max-height: 1200px; overflow-x: auto; overflow: scroll;"></div><script src="https://cdn.rawgit.com/BloggerSpice/Sitemap/master/sitemap.js" type="text/javascript"></script> <script src="/feeds/posts/summary?alt=json-in-script&amp;max-results=9999&amp;callback=loadtoc" type="text/javascript"></script>

Click publish.  View your page to see what it looks like and grab the url.

If you want to customize the color, you  look for this for the background: 

#bp_toc {background:#DC82BA;
Change #DC82BA to whatever color you want.

To change the hover color: Look for this:
.toc-entry-col3 a:hover{color:#E018E2;}
Change the #E018E2 color to what suits you.

If you are using pages for your blog navigation, then you can add the sitemap to your menu.

 Open your page widget near your Header.  Get the nurl of the sitemap page you just created and paste in where it says Web address URL.



 This is your page list with the added Sitemap.

About Linda @ Life and Linda

Hello, welcome to LifeandLinda. I am from Northern California. I enjoy blogging, Designing Blogs, Decorating, cooking, entertaining, gardening and clogging. I hope you enjoy your visit.

16 comments:

  1. Look at your blooms..you seem to live in paradise!
    Thanks for another fun idea for us and our blogs Linda..

    ReplyDelete
  2. Linda, this looks quite interesting. I'll want to try that one day. Thanks for the instruction.

    Brenda
    xox

    ReplyDelete
  3. Thanks! I have this pinned to give it a try.

    ReplyDelete
  4. Thanks for the instructins, MAYBE I can do this.....we'll see;)

    ReplyDelete
  5. I am terrible about these kinds of things. I've learned to leave it to you to fix and add things for me! The flowering plum looks fabulous- luck you!!

    ReplyDelete
  6. Thanks for these instructions, Linda. I have added a site map to my neglected blog. I hope to get back to blogging at some point!

    ReplyDelete
  7. You're the best at sharing your information with us, Linda! I really loved seeing your flowering tree! Spring has arrived in your area. We had an ice storm in the Dallas area last night and schools are closed!

    ReplyDelete
  8. As Kitty mentioned, we have ice and sleet! Lots of closings today of schools and businesses ~ much safer for folks. It's going to be rough in the morning too! Seems we have another "front" moving in on Wed. Oh well, that's Texas weather! :)

    Your plum tree is gorgeous! I can only imagine how beautiful it is, along with the flowers, to see in person. Thanks for sharing the info! It almost makes my head hurt to think of doing it. Lol You already know how technically challenged I am ~

    xo
    Pat

    ReplyDelete
  9. The plum tree is a welcome sight for us northerners! I created the site map which was the easy part and now to get it to show on my blog. LOL, oh dear. xo

    ReplyDelete
  10. Wow, Linda!!

    Thank you so much for sharing your knowledge with your readers!
    This was easy, peasy! Thank you for helping me with my blog. xoxo

    ReplyDelete
  11. I too pinned the blog site to try one day soon.
    The Plum tree is really pretty.

    ReplyDelete
  12. Thank you for share it!

    ReplyDelete
  13. Whew! I lost my other sitemap code...and remembered that you have a pretty sitemap code. Thanks for saving me today! I am trying to get to webmaster tools to register my sitemap...and I clicked on something and my old sitemap just disappeared. Whoa! Sheila

    ReplyDelete
  14. شكرا ليندا

    ReplyDelete
  15. Thanks I appreciate your effort,it was helpful and my blog looks better now
    http://thelifeessentials.blogspot.com

    ReplyDelete

I so appreciate your visits and sharing your thoughts at Life and Linda.

Please note that I use Google Adsense, Shareasale, Rakuten and Amazon affiliate links on this site. This means using them for purchases won’t cost you extra but may earn me a small commission. Our full disclosure is available for viewing under About in the disclosure policy.
All rights reserved. Our graphics, images and text are all subject to copyright protection.