Adding Sitemap helps your Visitors to Navigate your site easily. Not only while submitting, Displaying Sitemaps plays a Very important role in Search Engine Optimization. Here i am presenting a Very easy Method to Show the Sitemap in Blogger.

Adding Sitemap to Blogger Blog:

  • Go to Blogger > Pages Tab > New Blank Page.
  • In the Page, Click on Edit HTML and Paste the Following Code.
<style>#bp_toc{width:985px;float:center;margin-top:-3em}.toc-header-col1 a:link,.toc-header-col2 a:link,.toc-header-col3 a:link{display:none}.toc-header-col1{width:500px}.toc-header-col2{width:85px}.toc-header-col3{width:400px}.toc-entry-col1,.toc-entry-col2,.toc-entry-col3{border:1px solid #ccc;padding-left:5px}.toc-entry-col1 a:link{font-size:11pt;font-family:Cambria}.toc-entry-col2{font-family:Courier New;font-size:12px;text-align:center;padding-left:0px}.toc-entry-col3 a:link{font-style:Italic;font-size:11px}</style> 
<div id="bp_toc"></div>
<script type='text/javascript'>//<![CDATA[
function loadtoc(a){function b(){if("entry"in a.feed){var b=a.feed.entry.length;totalEntires=totalEntires+b;totalPosts=a.feed.openSearch$totalResults.$t;if(totalPosts>totalEntires){var c=document.createElement("script");c.type="text/javascript";startindex=totalEntires+1;c.setAttribute("src","/feeds/posts/summary?start-index="+startindex+"&max-results=500&alt=json-in-script&callback=loadtoc");tocdiv.appendChild(c)}for(var d=0;d<b;d++){var e=a.feed.entry[d];var f=e.title.$t;var g=e.published.$t.substring(0,10);var h;for(var i=0;i<e.link.length;i++){if(e.link[i].rel=="alternate"){h=e.link[i].href;break}}if("content"in e){var j=e.content.$t}else if("summary"in e){var j=e.summary.$t}else var j="";var k=/<\S[^>]*>/g;j=j.replace(k,"");if(j.length>numChars){j=j.substring(0,numChars);var l=j.lastIndexOf(" ");j=j.substring(0,l)+"..."}var m="";if("category"in e){for(var i=0;i<e.category.length;i++){m+="<a href=\"javascript:filterPosts('"+e.category[i].term+"');\" title=\"Click here to select all posts with label '"+e.category[i].term+"'\">"+e.category[i].term+"</a>,  "}var n=m.lastIndexOf(",");if(n!=-1){m=m.substring(0,n)}}postTitle.push(f);postDate.push(g);postUrl.push(h);postSum.push(j);postLabels.push(m)}}if(totalEntires==totalPosts){tocLoaded=true;showToc()}}b();sortPosts(sortBy);tocLoaded=true}function filterPosts(a){postFilter=a;displayToc(postFilter)}function allPosts(){postFilter="";displayToc(postFilter)}function sortPosts(a){function b(a,b){var c=postTitle[a];postTitle[a]=postTitle[b];postTitle[b]=c;var c=postDate[a];postDate[a]=postDate[b];postDate[b]=c;var c=postUrl[a];postUrl[a]=postUrl[b];postUrl[b]=c;var c=postSum[a];postSum[a]=postSum[b];postSum[b]=c;var c=postLabels[a];postLabels[a]=postLabels[b];postLabels[b]=c}for(var c=0;c<postTitle.length-1;c++){for(var d=c+1;d<postTitle.length;d++){if(a=="titleasc"){if(postTitle[c]>postTitle[d]){b(c,d)}}if(a=="titledesc"){if(postTitle[c]<postTitle[d]){b(c,d)}}if(a=="dateoldest"){if(postDate[c]>postDate[d]){b(c,d)}}if(a=="datenewest"){if(postDate[c]<postDate[d]){b(c,d)}}}}}function displayToc(a){var b=0;var c="";var d="POST TITLE";var e="Click to sort by title";var f="POST DATE";var g="Click to sort by date";var h="LABELS";var i="";if(sortBy=="titleasc"){e+=" (descending)";g+=" (newest first)"}if(sortBy=="titledesc"){e+=" (ascending)";g+=" (newest first)"}if(sortBy=="dateoldest"){e+=" (ascending)";g+=" (newest first)"}if(sortBy=="datenewest"){e+=" (ascending)";g+=" (oldest first)"}if(postFilter!=""){i="Click to show all posts"}c+="<table>";c+="<tr>";c+='<td class="toc-header-col1">';c+='<a href="javascript:toggleTitleSort();" title="'+e+'">'+d+"</a>";c+="</td>";c+='<td class="toc-header-col2">';c+='<a href="javascript:toggleDateSort();" title="'+g+'">'+f+"</a>";c+="</td>";c+='<td class="toc-header-col3">';c+='<a href="javascript:allPosts();" title="'+i+'">'+h+"</a>";c+="</td>";c+="</tr>";for(var j=0;j<postTitle.length;j++){if(a==""){c+='<tr><td class="toc-entry-col1"><a href="'+postUrl[j]+'" title="'+postSum[j]+'">'+postTitle[j]+'</a></td><td class="toc-entry-col2">'+postDate[j]+'</td><td class="toc-entry-col3">'+postLabels[j]+"</td></tr>";b++}else{z=postLabels[j].lastIndexOf(a);if(z!=-1){c+='<tr><td class="toc-entry-col1"><a href="'+postUrl[j]+'" title="'+postSum[j]+'">'+postTitle[j]+'</a></td><td class="toc-entry-col2">'+postDate[j]+'</td><td class="toc-entry-col3">'+postLabels[j]+"</td></tr>";b++}}}c+="</table>";if(b==postTitle.length){var k='<span class="toc-note">Displaying all '+postTitle.length+" posts<br/></span>"}else{var k='<span class="toc-note">Displaying '+b+" posts labeled '";k+=postFilter+"' of "+postTitle.length+" posts total<br/></span>"}tocdiv.innerHTML=k+c}function toggleTitleSort(){if(sortBy=="titleasc"){sortBy="titledesc"}else{sortBy="titleasc"}sortPosts(sortBy);displayToc(postFilter)}function toggleDateSort(){if(sortBy=="datenewest"){sortBy="dateoldest"}else{sortBy="datenewest"}sortPosts(sortBy);displayToc(postFilter)}function showToc(){if(tocLoaded){displayToc(postFilter);var a=document.getElementById("toclink")}else{alert("Just wait... TOC is loading")}}function hideToc(){var a=document.getElementById("toc");a.innerHTML="";var b=document.getElementById("toclink");b.innerHTML='<a href="#" onclick="scroll(0,0); showToc(); Effect.toggle('+"'toc-result','blind');"+'">&#187; Show Table of Contents</a> <img src="http://lh4.ggpht.com/-TVWOchhTH4A/T9Bnpi6hJmI/AAAAAAAAEeg/tSf2Y3fdLyY/New%25255B3%25255D.png"/>'}var postTitle=new Array;var postUrl=new Array;var postDate=new Array;var postSum=new Array;var postLabels=new Array;var sortBy="datenewest";var tocLoaded=false;var numChars=250;var postFilter="";var tocdiv=document.getElementById("bp_toc");var totalEntires=0;var totalPosts=0//]]></script>
<script src="/feeds/posts/summary?alt=json-in-script&max-results=500&callback=loadtoc" type="text/javascript"></script>
  • After pasting, Click on Publish button and Visit the Page. You'll see the Sitemap of your Site. 
Hope you Enjoy this Awesome Tutorial guys...If you want any Help, Drop your comments below.
 
Top