HTML SITEMAP

 Hello friends how are you all?

I hope everyone is fine. I came with another post. By looking at the title of the post, you have understood that today we will talk about how to add an HTML SITEMAP to blogger. Hope it will be useful for you. It will be very useful especially for new bloggers.

What is actually HTML SITEMAP?

In one word, HTML SITEMAP is actually the navigation map of your site where you will find all the posts of your site in one place according to the label of your site. From where you can browse all the posts of your site. It is usually done in big sites, but Now almost all sites have this added.

A few words before starting:

The post is generally made for newbies. Those who go can ignore it. Everyone is choosing blogger as their career so posting

Still, I found a post about it on . Got some posts. Among themSHAKIBBrother's post was there. But my process is different, so everyone needs to know this too.

You can see Saqib Bhai's post:-Click Here

Screenshot:

 

Let's start now:

First go to Blogger Dashboard and click on Theme

How To Set Html Sitemap In Blogger

Now click on the Down-Arrow button next to Customize

How To Set Html Sitemap In Blogger

Now first backup your theme. Because if there is any problem you can restore it. Then click on Edit Html

How To Set Html Sitemap In Blogger

 

Now press CTRL+F and search ]]></b:skin> in Search button

How To Set Html Sitemap In Blogger

This time ]]></b:skin> PASTE the following codes above this code

CODE 1:

/* ######## Navigation Menu Css by sorabloggingtips.com ######################### */ .mapasite { margin-bottom: 10px; background-color: #F8F8F8 } .mapasite.active .mapa { display: block } .mapasite .mapa { display: none } .mapasite h2 { background-color: #EEE; color: #000; font-size: 15px; padding: 10px 20px; border-radius: 2px; margin-bottom: 0; cursor: pointer; font-weight: 700 } .mapasite h2 .botao { font-size: 18px; line-height: 1.2em } .botao .fa-minus-circle { color: #f30 } .mapapost { overflow: hidden; margin-bottom: 20px; height: 70px; background-color: #FFF } .mapa { padding: 40px } .map-thumb { background-color: #F0F0F0; padding: 10px; display: block; width: 65px; height: 50px; float: left } .map-img { width: 65px; height: 50px; overflow: hidden; border-radius: 2px } .map-thumb a { width: 100%; height: 100%; display: block; transition: all .3s ease-out!important; -webkit-transition: all .3s ease-out!important; -moz-transition: all .3s ease-out!important; -o-transition: all .3s ease-out!important } .map-thumb a:hover { -webkit-transform: scale(1.1) rotate(-1.5deg)!important; -moz-transform: scale(1.1) rotate(-1.5deg)!important; transform: scale(1.1) rotate(-1.5deg)!important; transition: all .3s ease-out!important; -webkit-transition: all .3s ease-out!important; -moz-transition: all .3s ease-out!important; -o-transition: all .3s ease-out!important } .mapapost .wrp-titulo { padding-top: 10px; font-weight: 700; font-size: 14px; line-height: 1.3em; padding-left: 25px; padding-right: 10px; display: block; overflow: hidden; margin-bottom: 5px } .mapapost .wrp-titulo a { } .mapapost .wrp-titulo a:hover { color: #f30; text-decoration: underline } .map-meta { display: block; float: left; overflow: hidden; padding-left: 25px; } .mapasite h2 .botao { float: right }

Code 1 Download : Drive

How To Set Html Sitemap In Blogger

Now press CTRL and search for the </body> tag and paste the following codes above the </body> tag

CODE:2

<script type='text/javascript'> //<![CDATA[ var text_month = [, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"]; var no_image_url = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj242sohNq46QVcWiHYlNoqzgSh5N3c0KC5N_aRIaParmmzzo_pYcYiPu90WDayQACFjpsEVa6VtZvH-l5Z0xG4Fx_1UYiLScdLT4QeayiHd9Uun09nEs87m_tfz5b7fVPv8tA3oC_Xdc/s1600-r/nth.png"; var static_page_text = $.trim($('.static_page .post-body').text()); if (static_page_text === "[sitemap]") { var postbody = $('.static_page .post-body'); $.ajax({ url: "/feeds/posts/default?alt=json-in-script", type: 'get', dataType: "jsonp", success: function(dataZ) { var blogLabels = []; for (var t = 0; t < dataZ.feed.category.length; t++) { blogLabels.push(dataZ.feed.category[t].term) } var blogLabels = blogLabels.join('/'); postbody.html('<div class="siteLabel"></div>'); $('.static_page .post-body .siteLabel').text(blogLabels); var splabel = $(".siteLabel").text().split("/"); var splabels = ""; for (get = 0; get < splabel.length; ++get) { splabels += "<span>" + splabel[get] + "</span>" } $(".siteLabel").html(splabels); $('.siteLabel span').each(function() { var mapLabel = $(this); var mapLabel_text = $(this).text(); $.ajax({ url: "/feeds/posts/default/-/" + mapLabel_text + "?alt=json-in-script", type: 'get', dataType: "jsonp", success: function(data) { var posturl = ""; var htmlcode = '<div class="mapa">'; for (var i = 0; i < data.feed.entry.length; i++) { for (var j = 0; j < data.feed.entry[i].link.length; j++) { if (data.feed.entry[i].link[j].rel == "alternate") { posturl = data.feed.entry[i].link[j].href; break } } var posttitle = data.feed.entry[i].title.$t; var author = data.feed.entry[i].author[0].name.$t; var get_date = data.feed.entry[i].published.$t, year = get_date.substring(0, 4), month = get_date.substring(5, 7), day = get_date.substring(8, 10), date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year; var tag = data.feed.entry[i].category[0].term; var content = data.feed.entry[i].content.$t; var $content = $('<div>').html(content); var src2 = data.feed.entry[i].media$thumbnail.url; htmlcode += '<div class="mapapost"><div class="map-thumb"><div class="map-img"><a href="' + posturl + '" style="background:url(' + src2 + ') no-repeat center center;background-size: cover"/></div></div><h3 class="wrp-titulo"><a href="' + posturl + '">' + posttitle + '</a></h3><div class="map-meta"><span class="p-author">' + author + '</span><span class="p-date">' + date + '</span></div></div>' } htmlcode += '</div>'; mapLabel.replaceWith('<div class="mapasite"><h2>' + mapLabel_text + '<span class="botao"><i class="fa fa-plus-circle"></i></span></h2>' + htmlcode + '</div>'); $(document).on('click', '.mapasite h2', function() { $(this).parent('.mapasite').addClass('active'); $(this).find('.botao .fa').removeClass('fa-plus-circle').addClass('fa-minus-circle'); }); $(document).on('click', '.mapasite.active h2', function() { $(this).parent('.mapasite').removeClass('active'); $(this).find('.botao .fa').addClass('fa-plus-circle').removeClass('fa-minus-circle'); }); } }); }); } }); } //]]> </script>

Code 2 Download : DRIVE

How To Set Html Sitemap In Blogger

See I did it. Now save the theme and exit

How To Set Html Sitemap In Blogger

 

Now come to the page and create a new page

How To Set Html Sitemap In Blogger

 

Now on the new page, give Title, Sitemap and Content, write only sitemap and publish

How To Set Html Sitemap In Blogger

 

Now view the page and see that HTML SITEMAP NAVIGATION is set in your blogger site and see all my blog posts with categories are showing from this page.

How To Set Html Sitemap In Blogger

Now you can put this sitemap page anywhere on your blogger site.

Post a Comment

Previous Post Next Post
Youtube Channel Image
BlogrTool Subscribe To watch more Blogging Tutorials
Subscribe