73745675015091643

How To Add Sitemap Page In Latest Fletro Pro v5.5 Template

Fletro pro v5.5
Photo credit: Jagodesain.com

In the latest update of Fletro Pro (Fletro Pro v5.5) you can now add a sitemap to a static page, we have provided a ready-to-use sitemap script, all you have to do is copy the script to your page.

This sitemap script will display all of your articles based on labels that are sorted alphabetically, to see the sitemap demo you can directly visit this page
<div class="sitemaps" id="sitemaps">
  <div class="loading">Loading....</div>
</div>
<script>/*<![CDATA[*/
/* Blogger Sitemap Dropdown */
var toc_config = {containerId:'sitemaps', showNew:0, sortAlphabetically:{thePanel:true, theList:true}, activePanel:1, slideSpeed:{down:400, up:400}, slideEasing:{down: null, up: null}, slideCallback:{down:function(){}, up:function(){}}, clickCallback:function(){}, jsonCallback:'sitemaps',delayLoading: 0};
window.onload = function(){
!function(e,o){var t=o.getElementById(toc_config.containerId),c=o.getElementsByTagName("head")[0],n=[];e[toc_config.jsonCallback]=function(e){for(var o,c,i=e.feed.entry,a=e.feed.category,l="",s=0,d=a.length;d>s;++s)n.push(a[s].term);for(var r=0,f=i.length;f>r;++r)(toc_config.showNew||toc_config.showNew>0)&&r<toc_config.showNew+1&&(i[r].title.$t+=" %new%");i=toc_config.sortAlphabetically.theList?i.sort(function(e,o){return e.title.$t.localeCompare(o.title.$t)}):i,toc_config.sortAlphabetically.thePanel&&n.sort();for(var g=0,h=n.length;h>g;++g){l+='<div class=\"sitemap-box\"><h4 class=\"judul\">'+n[g]+'</h4>',l+='<div class=\"konten\"><ol>';for(var _=0,p=i.length;p>_;++_){o=i[_].title.$t;for(var w=0,u=i[_].link.length;u>w;++w)if("alternate"==i[_].link[w].rel){c=i[_].link[w].href;break}for(var v=0,m=i[_].category.length;m>v;++v)n[g]==i[_].category[v].term&&(l+='<li><a href=\"'+c+'\" title=\"'+o.replace(/ \%new\%$/,"")+'\">'+o.replace(/ \%new\%$/,"")+'</a></li>')}l+='</ol></div></div>'}t.innerHTML=l,"undefined"!=typeof jQuery&&($("#"+toc_config.containerId+" .konten").hide(),$("#"+toc_config.containerId+" .judul").click(function(){$(this).hasClass("aktif")||(toc_config.clickCallback(this),$("#"+toc_config.containerId+" .judul").removeClass("aktif").next().slideUp(toc_config.slideSpeed.up,toc_config.slideEasing.up,toc_config.slideCallback.up),$(this).addClass("aktif").next().slideDown(toc_config.slideSpeed.down,toc_config.slideEasing.down,toc_config.slideCallback.down))}).eq(toc_config.activePanel-1).addClass("aktif").next().slideDown(toc_config.slideSpeed.down,toc_config.slideEasing.down,toc_config.slideCallback.down))};var i=o.createElement("script");
i.src="https://www.your-domain.com/feeds/posts/summary?alt=json-in-script&max-results=9999&callback="+toc_config.jsonCallback,"onload"==toc_config.delayLoading?e.onload=function(){c.appendChild(i)}:e.setTimeout(function(){c.appendChild(i)},toc_config.delayLoading)}(window,document);
}
/*]]>*/</script>
Note: Change the domain in the script

Make sure you change the url in the script with your blog link so that the list of articles that appear is from your blog.

Please find the highlighted url like this in the script and replace it with your blog url:
https://www.your-domain.com

Fix the issue of sitemap not showing up

As explained above, this script will display articles based on labels on your blog, if there is an error that causes the sitemap not to appear, then most likely the cause of the problem is that the url in the script has not been changed or there are some of your posts that do not have a label.

Yes, the requirement for posts to appear on the sitemap is that all articles must have a 'Label' even if only one label. Also make sure you enable feed settings on your blog.

1. Display images directly paste the link (http...jpg)
2. Show video directly paste the link
3. Write code in the comments code_parse_here

Comment fairly and in accordance with the topic in the article, don't send spam links in the comments column.

Post a Comment (0)

Deskripsi Singkat (Tampil Hanya di Mobile)

Ongkos Kirim (Aktifkan bila digunakan)