Showing posts with label sitemap. Show all posts
Showing posts with label sitemap. Show all posts

Saturday, November 5, 2016

How to add Ajax Based Sitemap Widget For Blogger

Ajax Based Sitemap Widget For Blogger

Sitemap is a must have page for every blog, it can help to improve your blog navigation and also to reduce the blog's bounce rate. The sitemap widget we're going to add today shows a list of articles on the latest published order under each categories.

Also Read: How To Add Google+ Popup Followers Widget For Blogger

How To Add Sitemap Widget On Your Blog

Note:- Please create a back up of your template before you install this widget. To do this, navigate to "Template" and make a backup of your template by clicking on the "Backup/Restore" link at the top. Once the back up is over, follow these steps carefully.
Also Read: How To Add Facebook Popup Widget For Blogger 

Step by Step Tutorial How to Add Sitemap


  • On the Blogger Dashboard Go to Template > Edit HTML Button
  • Click inside the HTML Editor, Press CTRL+F (This will open a search form on the top right side of the HTML Editor)
  • Now search for </head>
  • Above that place the following code.
<style type='text/css'> .btnt-sitemap { border-bottom: 4px solid #444; } .btnt-toc-wrap { display: inline-block; font-family: "Century Gothic",sans-serif; width: 100%; } .btnt-toc-wrap .btnt-cat { background: #333; border-radius: 2px; color: #fff; font-size: 15px; font-weight: bold; padding: 10px 20px; text-transform: capitalize; } .btnt-toc::before { background: #333; bottom: 0; content: ""; left: 20%; margin-left: -10px; position: absolute; top: 0; width: 4px; } .btnt-toc { margin: 0; padding: 30px 20px; position: relative; } .btnt-toc li { list-style: none; margin: 0; padding: 0; position: relative; } .btnt-toc > li .toc-date { color: #999; display: block; font-size: 14px; font-weight: bold; position: absolute; text-transform: uppercase; top: 25px; width: 15%; } .btnt-toc > li .btnt-icon { background: #fff; border-radius: 50%; box-shadow: 0 0 0 4px #333; color: #fff; font-size: 1.4em; font-style: normal; font-variant: normal; font-weight: normal; height: 10px; left: 20%; line-height: 10px; margin: 0 0 0 -25px; position: absolute; text-align: center; text-transform: none; top: 30px; width: 10px; } .btnt-toc > li .btnt-post::after { border-color: transparent #f5f5f5 transparent transparent; border-style: solid; border-width: 10px; content: " "; height: 0; pointer-events: none; position: absolute; right: 100%; top: auto; width: 0; } .btnt-toc > li .btnt-post { background: #f5f5f5; border-radius: 5px; display: block; font-size: 15px; line-height: 15px; margin: 0 0 15px 23%; padding: 25px 30px; position: relative; } .btnt-toc > li .btnt-post a { color: #333; font-weight: bold; } .btnt-toc > li .btnt-post a:hover { color: #999; } </style>
 <b:if cond='data:blog.pageType == &quot;static_page&quot;'> <script type='text/javascript'> /*<![CDATA[*/ $(document).ready(function(){var static_page_text=$.trim($(".post-body").text());var text_month=[,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"];if(static_page_text==="[sitemap]"){var postbody=$(".post-body");$.ajax({url:"/feeds/posts/default?alt=json-in-script",type:"get",dataType:"jsonp",success:function(e){var t=[];for(var n=0;n<e.feed.category.length;n++){t.push(e.feed.category[n].term)}var t=t.join("/");postbody.html('<div class="btnt-sitemap"></div>');$(".post-body .btnt-sitemap").text(t);var r=$(".btnt-sitemap").text().split("/");var i="";for(get=0;get<r.length;++get){i+="<span>"+r[get]+"</span>"}$(".btnt-sitemap").html(i);$(".btnt-sitemap span").each(function(){var e=$(this);var t=$(this).text();$.ajax({url:"/feeds/posts/default/-/"+t+"?alt=json-in-script",type:"get",dataType:"jsonp",success:function(n){var r="";var i='<ul class="btnt-toc">';for(var s=0;s<n.feed.entry.length;s++){for(var o=0;o<n.feed.entry[s].link.length;o++){if(n.feed.entry[s].link[o].rel=="alternate"){r=n.feed.entry[s].link[o].href;break}}var u=n.feed.entry[s].title.$t;var a=n.feed.entry[s].published.$t,f=a.substring(0,4),l=a.substring(5,7),c=a.substring(8,10),h='<span class="day">'+c.replace(/^0+/,"")+'</span><span class="month">'+text_month[parseInt(l,10)]+' </span><span class="year">'+f+"</span>";i+='<li><div class="toc-date">'+h+'</div><div class="btnt-icon"></div><span class="btnt-post"><a href="'+r+'">'+u+"</a></span></li>"}i+="</ul>";e.replaceWith('<div class="btnt-toc-wrap"><div class="btnt-cat">'+t+'</div>'+i+"</div>")}})})}})}}); /*]]>*/ </script> </b:if>

Final Step:


  • Now save your template.
  • After that On the Dashboard, Go to Pages > New Page
  • On the new page content after adding the page title and hiding the comments using options, add the following code in the page content area.

[sitemap]



For better understanding check the highlighted area in the below image.

How to add Ajax Based Sitemap Widget For Blogger

Now click publish button and check the published page to see the newly added sitemap widget.
I hope you liked this article and Ajax Based Sitemap Widget . This is a simple a widget to increase your fan following of your profile in order to Increase your blog traffic.
Read More

Monday, February 22, 2016

How to Creat Advance SITEMAP For your Blog

Today we will learn How to Create a Sitemap or Table of Contents for your Blog. Display all your Posted article in effective and ease way for readers to navigate through your articles.

Table of content or effectively called site-map of your blog gives your readers a navigation platform that is designed for them to go through their required topic much easily. Blogger does not provide such kind of widget but it can be externally added. There different types of table of content widget that are available over various widget providing blogs, out of which I have selected few and compiled them in one place for you.

How to Create a Sitemap Step by Step:

  • Creat a Page and name it " Sitemap"
  • In the Post Editor  you will see two options: Compose / HTML
  • Click on HTML and Copy and Paste the below Code.
  • You are done.
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<style>
/* CSS Sitemap  by bloggerspice */
#table-outer table {width:100%;margin:0;padding:0;}
#table-outer input, #table-outer select {padding:4px;font:inherit;background:#fff;width:170px;box-sizing:border-box;border:none;color:#444;border:1px solid #eaeaea;transition:all 0.6s;}
#table-outer select {cursor:pointer;outline:none}
#table-outer input:focus{outline:none;background:#fff;border-color:#dadada;}
#resultDesc {margin-bottom:10px;}
#feedContainer {overflow:hidden;margin-top:20px;}
#feedContainer strong {font-size:10px;}
#feedContainer, #feedContainer li {padding:0;margin:0;list-style:none;}
#feedContainer li {float:left;width:50%;margin-bottom:5px;position:relative;z-index:0;}
#feedContainer .inner {display:block;height:72px;padding:10px;margin:5px 5px 0 5px;position:relative;background-color:#fff;box-shadow:0 0 0 1px #eaeaea;opacity:0.9;transition:all 0.6s;}
#feedContainer .inner:hover {opacity:1;box-shadow:0 0 0 1px #dadada;}
#feedContainer img {float:left;margin: 0 8px 0 0;max-width:100%;padding:1px;background:#ddd;}
#feedContainer .toc-title {max-height:33px;overflow:hidden;color:#444;font-weight:400;}
#feedContainer .toc-title:hover {color:#404040;}
#feedContainer .news-text {font-size:11px;display:none;}
#feedNav a, #feedNav span {display:block;text-align:center;color:#fff;
background-color:#444;padding:5px 0;width:100%;margin: 0 auto;margin-top:10px;transition:all 0.3s linear;}
#feedNav a:hover, #feedNav span:hover {background-color:#444;transition:all 0.3s linear;}
#feedContainer .date {display:none;position:absolute;bottom:0;right:0;background-color:transparent;color:#fff;font-size:9px;padding:3px 2px;width:35px;}
#feedContainer .date .dd {font-size:9px;line-height:5px;font-weight:bold;}
#feedContainer .date span {display:inline-block;line-height:5px;text-align:center;
margin-left:5px;}
</style>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div id="table-outer">
<table><tbody>
<tr><td><label>Sort posts by : </label></td><td><select id="orderFeedBy"><option selected="" value="published">New post</option><option value="updated">Post updated</option></select></td></tr>
<tr><td><label>Filter posts by category : </label></td><td><span id="labelSorter"><select disabled=""><option selected="">Loading...</option></select></span></td></tr>
<tr><td><label>Search by keyword : </label></td><td><form id="postSearcher">
<input type="text" /></form>
</td></tr>
</tbody></table>
</div>
<header id="resultDesc"></header><br /><br />
<ul id="feedContainer"></ul>
<div id="feedNav">
Loading...</div>
<script src="https://googledrive.com/host/0B3jgs-7rv9eUMUwwZTZZaWVxbms" type="text/javascript"></script>
</div>
</div>
</div>

Well done. You have Successfully created a Cool Sitemap for your blog.
Read More

Monday, February 15, 2016

How to Submit Your Blog’s Sitemap to Google Webmaster

Submit Your Blog’s Sitemap to Google

When we create a New Blog one of the most common issues is how to list the site in search engines like Google. Submitting your Blog sitemap to google webmaster tools is a critical Step for your Blog Success as a Newbei.

Inside your Google Webmaster Tool dashboard, on the right-hand side you will see an option called “Sitemaps”. Click on “More” to see all submitted sitemaps, or you can submit a new sitemap from there. Click on “Add/Test Sitemap” to submit your sitemap file.

How to Submit Your Blog’s Sitemap to Google Webmaster

Submitting your Google Site's sitemap to Google Search Console

  • On your Search Console home page, select your site.
  • In the left sidebar, click Site configuration and then Sitemaps.
  • Click the Add/Test Sitemap button in the top right.
  • Enter /system/feeds/sitemap into the text box that appears.
  • Click Submit Sitemap.

If you are not aware of how the search engine optimiztaion works, they think that they need to pay Google or other search engines to list their website. This is is not true, of course. You can show your Blog in a Google search for free. The only thing you need to work on is helping Google to find your blog.

What is a sitemap for Blogger?

A sitemap is an XML file that contains the URLs inside your blog. This file helps crawlers to find all of the URLs of your blog. There are many aspects of your site that a crawler will follow, such as the size of your sitemap and the number of URLs in your sitemap. In short, a sitemap is a complete index of your blog that you want search engine bots to see

When we submit a sitemap to Google, we do so using the Search console tool. Assuming that you have already verified your site in Google search console and that you have logged in to your webmaster tool dashboard here.

you have your sitemap link ready to go. If you have used an offline tool to generate your sitemap, upload it to the root of your site like this: /sitemap.xml

Inside your Google Webmaster Tool dashboard, on the right-hand side you will see an option called “Sitemaps”. Click on “More” to see all submitted sitemaps, or you can submit a new sitemap from there.
Read More