Cara Membuat Recent Posts Dengan Nomor Pada Blog Di Blogger


BangSiagian.id - Widget recent posts atau artikel terbaru merupakan salah satu widget yang paling banyak digunakan oleh pilih blog. Para pemilik blog memasang widget ini pada blog mereka bertujuan untuk menampilkan artikel terbaru yang terdapat di blog kepada pengunjung.

Banyak jenis atau bentuk widget recent posts ini antara lain adalah widget recent posts bergambar dan tulisan / hanya gambar saja / hanya dengan tuisan teks saja dan nomor urut.

Recent posts yang akan saya bagikan ini adalah widget recent posts dengan nomor urut dan disertai tulisan teks. Widget ini ringan sehingga tidak membuat blog menjadi berat dan pastinya widget recent posts ini tampilannya keren.

Pemasangan widget ini pun cukup mudah, kita hanya perlu menyimpan kode css dan kode java script di bagian edit kode pemanggil widget recent posts di tambahkan widget di blog.

Apakah kamu tertarik untuk memasang widget recent posts ini?

Sebelum kamu memasang widget ini diblog kamu, sebaiknya kamu lihat terlebih dahulu demo widgetnya. Klik tombol demo dibawah ini.



Setelah kamu melihat demo widget recent posts tesebut pasti kamu terarik untuk memasang widget ini di blog kamu kan.

Bagaimana cara memasang widget ini?

Silahkan ikuti langkah-langkahnya dibawah ini.


Memasang Recent Posts Dengan Nomor Pada Blog Di Blogger


1. Login ke Blogger.com

2. Silahkan klik menu TEMA >> EDIT HTML

3. Cari kode ]]></b:skin> lalu tambahkan kode CSS dibawah ini tepat diatas kode ]]></b:skin>

CSS
/* Recent Posts */
#recent-articles .widget-content, #recent-articles ul {padding: 0;counter-reset:count;margin: 0 auto;display: block}
#recent-articles a:link, #recent-articles a:visited {font-weight: normal}
#recent-articles ul li {background-color:#f7f7f7;margin:0 auto;padding:8px 8px 8px 60px;list-style:none;position:relative;border-bottom:1px solid #fff;font-size:90%;text-align:left}
#recent-articles ul li:before{color: #fff!important;counter-increment: count;content: counter(count);position: absolute;left:0;top:0;bottom:0;text-align: center;z-index: 51;transition: all .4s;width:50px;font-size: 150%!important;background:#2b71a2;font-weight:500;text-align: center;padding:0;border-right:1px solid #fff;display:flex;flex-direction:column;justify-content:center;height:100%}
#recent-articles ul li:last-child{border:none}
#recent-articles ul li a {font-weight:400 ;display:block;color:#222 ;text-decoration:none ;line-height:1.4em ;}
#recent-articles ul li:hover{background-color:#f5f5f5;}
#recent-articles ul li:hover:before{background-color:#24699A;}
#recent-articles ul li a:hover,#recent-articles ul li:hover a {color: #2b71a2 !important;}
#recent-articles ul li:before, #recent-articles ul li .item-title a {font-weight: 400;font-size: 12px;color: inherit;text-decoration: none}


Baca Juga: Cara Membuat Iklan atau Widget Blog Hanya Tampil Di Mobile Site Blog


4. Cari kode </body> atau &lt;!--</body>--&gt;&lt;/body&gt; lalu tambakan kode JavaScript dibawah ini tepat diatas kode </body> atau &lt;!--</body>--&gt;&lt;/body&gt;

JavaScript
<script type='text/javascript'>
//<![CDATA[
numPosts = 10;function recentPosts(a){if(document.getElementById("recent-posts")){var e=a.feed.entry,title,link,content="",ct=document.getElementById("recent-posts");ct.async=true;for(var i=0;i<numPosts;i++){for(var j=0;j<numPosts;j++){if(e[i].link[j].rel=="alternate"){link=e[i].link[j].href;break}}var title=e[i].title.$t;content+='<li class="recent-posts"><a href="'+link+'" title="'+title+'">'+title+'</a></li>'}ct.innerHTML=content}}var rcp=document.createElement('script');rcp.async=true;rcp.src='/feeds/posts/summary?alt=json-in-script&orderby=published&max-results='+numPosts+'&callback=recentPosts';document.getElementsByTagName('head')[0].appendChild(rcp);
//]]>
</script>

Keterangan:
Perhatikan >> numPosts = 10 pada kode diatas. 10 adalah jumlah recent posts yang ingin ditampilkan.

5. Tambahkan kode pemanggil recent posts dibawah ini di Tambahkan Gadget dengan cara klik menu Tata Letak >> Klik Tambahkan Gadget >> Pilih HTML/JavaScript >> Klik Simpan.

Kode Pemanggil 
<div id='recent-articles' class='recent-articles'><ul id="recent-posts"></ul></div>

Untuk melihat hasilnya silahkan buka blog kamu dan lihatlah tampilan recent posts keren dengan nomor ini diblog kamu.

Ok guys, itulah dia artikel dari saya mengenai cara membuat recent posts dengan nomor pada blog di blogger. Selamat mencoba guys.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

fitness showrooms stamford ct ea fitness fitness barre cranberry fitness center software fitness gym software apogee fitness fit online classes rpac group fitness classes fitness management software seo explanation digital marketing degree florida online courses on digital marketing digital marketing certificate programs online digital marketing course review internet marketing classes online courses on online marketing online marketing education email marketing wikipedia digital marketing degree course digital marketing classes online seo marketing company search engine optimization articles seo companys types of seo services seo technology search optimization companies seo specialists search engine optimization marketing services bitcoin merchant account bitcoin merchant services bitcoin mining cloud computing buy bitcoin australia buy stocks with bitcoin software mining bitcoin bitcoin mining gpu buy stock with bitcoin bitcoin stock chart how to invest in bitcoin stock Online Stock Trading Forex Trading Platform Real Trading Account Registration. Digital Transformation & Business Intelligence Software for Enterprises. Microsoft Professional Program in Entry-Level Software Development. Sofware recovery data wondershare data recovery. Recovery Database Network. Recovery Skills and Tools of Recovery, Coping Skills. Recover your Apple ID when you can't reset your password. Account Recovery, Prudential Financial. Transfer Procedure, Housing & Development Board. Transfer Airport Discount, Meilleures prix pour vous. Transfer to Northern Virginia Community College. Domain Transfer Service. Mobile Transfer App, Transfer Phone Contacts & More. Find information for transfer applicants to UC San Diego. Compare Energy Prices, Cheapest Gas and Electricity. Gas & electricity energy suppliers for home or business. American University Mesothelioma Law Firm Donate Car to Charity California Donate Car for Tax Credit Donate Old Cars to Charity Low Credit Line Credit Cards Dallas Mesothelioma Attorneys Car Insurance Quotes Donate your Car for Money Cheap Auto Insurance Met Auto Forensics Online Course Home Phone Internet Bundle Donating Used Cars to Charity PHD on Counseling Education Neuson Royalty Free Images Stock Car Insurance in South Dakota Email Bulk Service Webex Costs Cheap Car Insurance for Ladies Cheap Car Insurance in Virginia Register Free Domains Better Conference Calls Futuristic Architecture Mortgage Adviser Car Donate Virtual Data Rooms Online College Course Automobile Accident Attorney Auto Accident Attorney Car Accident Lawyers Data Recovery Raid the cheapest car insurance cost of car insurance best car insurance quotes insurance auto insurance quotes car quote for car insurance get insurance quote online disability insurance quote new car insurance private medical insurance home insurance car insurance brokers car insurance rates commercial insurance property insurance life insurance agent group insurance aetna health insurance cheap medical insurance liability insurance cheapest credit card company credit card universal life insurance mastercard debit card best credit cards to apply for apply for credit card online credit card apply how to apply for a credit card apply for new credit card best credit card comparison apply for visa card online cim credit card credit card transfer credit card interest credit card online best rate credit cards debit card Insurance Loans Mortgage Attorney Credit Lawyer Donate Degree Hosting Claim

Iklan Bawah Artikel