Cara Membuat Sitemap Accordion Di Blog

Pada kali ini kita akan membahas cara membuat sitemap accordion atau membuat daftar isi accordion di blog. Membuat sitemap accordion di blog...

Pada kali ini kita akan membahas cara membuat sitemap accordion atau membuat daftar isi accordion di blog. Membuat sitemap accordion di blog dinilai lebih etraktif daripada biasanya. Sitemap accordion sama fungsinya sepeti sitemap biasanya, namun lebih simple karena menggunakan efek toggle. Sitemap Accordion ini pun lebih ringan dan tidak membuat blog berat. Bagi yang ingin membuat sitemap accordion di blog, simak langkah berikut.
Tutorial Blogger dan Widget Blogger

CSS Sitemap Accordion

  • Login ke akun blogger.
  • Kemudian klik menu template.
  • Klik edit html.

  • Pastekan css berikut diatas ]]></b:skin> atau </style>.
[.sitemap{background-color:#fff;color:#444;font-size:13px;font-weight:400;overflow:hidden;border-radius:4px;border:1px solid #f3f3f3;}
.sitemap .header{color:#666;font-family:inherit;font-weight:400;font-size:14px;background-color:#fff;margin:0;padding:15px;overflow:hidden;cursor:pointer;border-bottom:1px solid #f3f3f3;transition:initial;}
.sitemap .header:hover{background-color:#f9f9f9;}
.sitemap .header.active{background-color:#f9f9f9;}
.sitemap .header:before{content:'';width:0;height:0;float:right;top:22px;right:15px;border:5px solid transparent;border-color:#666 transparent transparent;transition:all .3s ease}
.sitemap .header.active:before{border-color:#666 transparent transparent;top:16px;-webkit-transform:rotate(-180deg);-moz-transform:rotate(-180deg);-ms-transform:rotate(-180deg);-o-transform:rotate(-180deg);transform:rotate(-180deg)}
.sitemap .loading{display:block;padding:25px;text-align:center;background:#ffffff url('https://2.bp.blogspot.com/-vxUzQ8wWcMA/VydqG4UBh_I/AAAAAAAAFBc/4hyWJOFePnwUL5ZabEA91t2Jj7UCDWbsQCLcB/s50/loading.gif') no-repeat center;}
.sitemap ol{margin:0;padding:0;list-style:none;transition:initial;display: block!important;padding: 0!important;}
.sitemap li{margin:0!important;padding:8px 8px 8px 15px!important;text-align:left;overflow:hidden;transition:initial;border-bottom:1px solid #f3f3f3;}
.sitemap li:first-child(border-top:0}
.sitemap li:last-child(border-bottom:0}
.sitemap .new{font-weight:normal;font-style:normal;color:#fff;font-size:11px;background:#fc7569;padding:1px 6px 2px 6px;line-height:normal;float:right;border-radius:3px;text-transform:uppercase;}]

Script Sitemap Accordion

  • Login ke blogger.
  • Kemudian klik Laman.
  • Pilih dan klik laman baru.

  • Paste html berikut di tab HTML. (disebelah tab compose).
[<script>
var sitemap_config = {
    url: 'https://web.archive.org/web/20160514044920/http://www.tapike.com/',
    containerId: 'sitemap',
    showNew: 5,
    newText: '<div style="font-weight:normal;font-style:normal;color:#fff;font-size:11px;background:#10B3E4;;padding:1px 6px 2px 6px;line-height:normal;float:right;border-radius:3px;text-transform:uppercase;">
baru</div>
',
    sortAlphabetically: {
        thePanel: true,
        theList: true
    },
    maxResults: 9999,
    activePanel: 0,
    slideSpeed: {
        down: 400,
        up: 400
    },
    slideEasing: {
        down: null,
        up: null
    },
    slideCallback: {
        down: function() {},
        up: function() {}
    },
    clickCallback: function() {},
    jsonCallback: 'tapike',
    delayLoading: 0
};
!function(e,o){var t=o.getElementById(sitemap_config.containerId),c=o.getElementsByTagName("head")[0],n=[];e[sitemap_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)(sitemap_config.showNew||sitemap_config.showNew>0)&&r<sitemap_config.showNew+1&&(i[r].title.$t+=" %new%");i=sitemap_config.sortAlphabetically.theList?i.sort(function(e,o){return e.title.$t.localeCompare(o.title.$t)}):i,sitemap_config.sortAlphabetically.thePanel&&n.sort();for(var g=0,h=n.length;h>g;++g){l+='<h3 class="header">
'+n[g]+"</h3>
",l+='<div class="content">
<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+'">'+o.replace(/ \%new\%$/,"")+"</a>"+(o.match(/\%new\%/)?" "+sitemap_config.newText:"")+"</li>
")}l+="</ol>
</div>
"}t.innerHTML=l,"undefined"!=typeof jQuery&&($("#"+sitemap_config.containerId+" .content").hide(),$("#"+sitemap_config.containerId+" .header").click(function(){$(this).hasClass("active")||(sitemap_config.clickCallback(this),$("#"+sitemap_config.containerId+".header").removeClass("active").next().slideUp(sitemap_config.slideSpeed.up,sitemap_config.slideEasing.up,sitemap_config.slideCallback.up),$(this).addClass("active").next().slideDown(sitemap_config.slideSpeed.down,sitemap_config.slideEasing.down,sitemap_config.slideCallback.down))}).eq(sitemap_config.activePanel-1).addClass("active").next().slideDown(sitemap_config.slideSpeed.down,sitemap_config.slideEasing.down,sitemap_config.slideCallback.down))};var i=o.createElement("script");i.src=sitemap_config.url.replace(/\/$/,"")+"/feeds/posts/summary?alt=json-in-script&max-results="+sitemap_config.maxResults+"&callback="+sitemap_config.jsonCallback,"onload"==sitemap_config.delayLoading?e.onload=function(){c.appendChild(i)}:e.setTimeout(function(){c.appendChild(i)},sitemap_config.delayLoading)}(window,document);
</script>]

HTML Sitemap Accordion

  • Pastekan html berikut di bawah script di atas. 
<div class="sitemap" id="sitemap"><div class="loading"/></div>

Pengaturan

  • url: Ganti dengan domain blog Anda.
  • containerId: adalah ID dari widget sitemap accordion.
  • showNew: Jumlah maksimal dari artikel terbaru.
  • newText: Teks notifikasi untuk artikel terbaru.
Jika sitemap tidak muncul atau terjadi error, lakukan kompres pada script sitemap accordion di atas menggunakan js compressor. Error biasanya terjadi karena adanya white space di dalam script dan bukan merupakan masalah yang besar. Demikianlah pembahasan saya mengenai cara membuat sitemap accordion atau cara membuat daftar isi accordion di blog. Semoga artike ini dapat bermanfaat bagi kita semua. Jangan lupa like dan share.

COMMENTS

Name

Aceh,23,Adsense,8,BBM,3,Biography,1,Bitcoin,4,Blog,21,Blogger,12,Blogging,55,Business,14,Cerita,3,CPNS,1,Delicious,1,Design,1,DeviantART,1,Digg,1,Dollar,3,Dunia,13,Facebook,5,Flickr,1,Friendster,1,Gambar,2,Game,34,Gmail,1,Google+,4,Hosting,1,Inspirasi,2,Instagram,1,Internet,13,Interview,11,Kesehatan,2,LinkedIn,1,Makalah,7,Marketing,12,Meme,8,Money,3,Motivasi,2,MySpace,1,Outlook,1,Path,1,Pendidikan,10,Pengetahuan,4,Pinterest,1,Plugin,5,PNS,1,Reddit,1,Review,4,Seo,53,Smartphone,5,Social Media,38,Sukses,3,Sumatera Barat,16,Sumatera Utara,3,Templates,1,Tips,6,Toko Online,3,Top10,18,Tumblr,1,Tutorial,29,Tutorial Blog,146,Twitter,3,Umum,9,Vimeo,1,VK,1,Weebly,1,WhatsApp,1,Widget,55,Wisata,4,WordPress,14,Yahoo,1,Youtube,3,
ltr
item
Mas Da Bang: Cara Membuat Sitemap Accordion Di Blog
Cara Membuat Sitemap Accordion Di Blog
https://2.bp.blogspot.com/-FONksvJw4Y0/Wkp7z9-IWoI/AAAAAAAANjQ/Ltm9AtMYBPQCTqDCmQN3NEdHsu6yu7JswCLcBGAs/s1600/Widget-One.png
https://2.bp.blogspot.com/-FONksvJw4Y0/Wkp7z9-IWoI/AAAAAAAANjQ/Ltm9AtMYBPQCTqDCmQN3NEdHsu6yu7JswCLcBGAs/s72-c/Widget-One.png
Mas Da Bang
https://blog.itapuih.com/2018/11/cara-membuat-sitemap-accordion-di-blog.html
https://blog.itapuih.com/
https://blog.itapuih.com/
https://blog.itapuih.com/2018/11/cara-membuat-sitemap-accordion-di-blog.html
true
2732475762120586724
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy