Senin, 25 Maret 2013

Tutorial Membuat Widget Entri Popular Blogger Cantik Tabel Warna-Warni

Pernahkah anda melihat diblog-blog yang menampilkan Popular Post dengan widget Cantik  Warna-warni ? Coba lihat contohnya pada gambar dibawah ini :



Menarik Bukan ? apabila sobat blogger ingin memasang widget ini langsung saja caranya :

1. Masuk ke blogger anda
2. Masuk ke Tab Templete
3. Simpan dahulu templete yang ada, siapa tau nantinya eror tidak seperti yang diharapkan.
4. Centang ekspand Box
5. Cari kode ini  <b:skin><![CDATA[ dan pastekan kode dibawah ini tepat dibawah kode <b:skin><![CDATA[  :
/*
<Group description="PopularPosts Backgrounds" selector="#PopularPosts1">
<Variable name="PopularPosts.background.color1" description="background color1" type="color" default="#fa4242" value="#fa4242"/>
<Variable name="PopularPosts.background.color2" description="background color2" type="color" default="#ee6107" value="#ee6107"/>
<Variable name="PopularPosts.background.color3" description="background color3" type="color" default="#f0f" value="#f0f"/>
<Variable name="PopularPosts.background.color4" description="background color4" type="color" default="#ff0" value="#ff0"/>
<Variable name="PopularPosts.background.color5" description="background color5" type="color" default="#0ff" value="#0ff"/>
</Group>
*/

6. Cari kode  ]]></b:skin> Pastekan kode dibawah ini sebelumnya :
#PopularPosts1 ul{margin:0;padding:5px 0;list-style-type:none}
#PopularPosts1 ul li{position:relative;margin:5px 0;border:0;padding:10px}
#PopularPosts1 ul li:first-child{background:$(PopularPosts.background.color1);width:90%}
#PopularPosts1 ul li:first-child:after{content:"1"}
#PopularPosts1 ul li:first-child + li{background:$(PopularPosts.background.color2);width:85%}
#PopularPosts1 ul li:first-child + li:after{content:"2"}
#PopularPosts1 ul li:first-child + li + li{background:$(PopularPosts.background.color3);width:80%}
#PopularPosts1 ul li:first-child + li + li:after{content:"3"}
#PopularPosts1 ul li:first-child + li + li + li{background:$(PopularPosts.background.color4);width:75%}
#PopularPosts1 ul li:first-child + li + li + li:after{content:"4"}
#PopularPosts1 ul li:first-child + li + li + li + li{background:$(PopularPosts.background.color5);width:70%}
#PopularPosts1 ul li:first-child + li + li + li + li:after{content:"5"}
#PopularPosts1 ul li:first-child:after,#PopularPosts1 ul li:first-child + li:after,#PopularPosts1 ul li:first-child + li + li:after,#PopularPosts1 ul li:first-child + li + li + li:after,#PopularPosts1 ul li:first-child + li + li + li + li:after{position:absolute;top:20px;right:-15px;border-radius:50%;background:#0a960a;width:30px;height:30px;line-height:1em;text-align:center;font-size:28px;color:#fff}
#PopularPosts1 ul li .item-thumbnail{float:left;border:0;margin-right:10px;background:transparent;padding:0;width:40px;height:40px}
#PopularPosts1 ul li a{font-size:12px;color:#444;text-decoration:none}
#PopularPosts1 ul li a:hover{color:#222;text-decoration:none}

7. Cari kode ini <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'/>. Ganti dengan kode dibawah ini : 
<b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content popular-posts'>
<ul>
<b:loop values='data:posts' var='post'>
<li>
<b:if cond='data:showThumbnails == &quot;false&quot;'>
<b:if cond='data:showSnippets == &quot;false&quot;'>
<a expr:href='data:post.href' rel='bookmark' expr:title='data:post.title'><data:post.title/></a>
<b:else/>
<a expr:href='data:post.href' rel='bookmark' expr:title='data:post.snippet'><data:post.title/></a>
</b:if>
<b:else/>
<b:if cond='data:showSnippets == &quot;false&quot;'>
<b:if cond='data:post.thumbnail'>
<img expr:alt='data:post.title' class='item-thumbnail' expr:src='data:post.thumbnail'/>
<b:else/>
<img alt='no image' class='item-thumbnail' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWnJFJdSAt-yrPlrVTdWBbujWnqksbXOEBVawgIFQrc0GlOj95DM-7qxRYz7XA0nradCV4-Q8xEPspr3XIn8_n8hpLH0UCZt9d9L6vmrbz3ZXFGeuuwEOlcDWM6dnNq4i55dYUNVi2Fc0/'/>
</b:if>
<a expr:href='data:post.href' rel='bookmark' expr:title='data:post.title'><data:post.title/></a>
<div class='clear'/>
<b:else/>
<b:if cond='data:post.thumbnail'>
<img expr:alt='data:post.title' class='item-thumbnail' expr:src='data:post.thumbnail'/>
<b:else/>
<img alt='no image' class='item-thumbnail' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWnJFJdSAt-yrPlrVTdWBbujWnqksbXOEBVawgIFQrc0GlOj95DM-7qxRYz7XA0nradCV4-Q8xEPspr3XIn8_n8hpLH0UCZt9d9L6vmrbz3ZXFGeuuwEOlcDWM6dnNq4i55dYUNVi2Fc0/'/>
</b:if>
<a expr:href='data:post.href' rel='bookmark' expr:title='data:post.snippet'><data:post.title/></a>
<div class='clear'/>
</b:if>
</b:if>
</li>
</b:loop>
</ul>
</div>
</b:includable>
</b:widget>
8. Save dahulu templete anda.
9. Lalu masuk ke Tab Tata letak, tammbahkan Gadget HTML sesuai tempat yang diinginkan
10. Atur Widget Seperti gambar dibawah ini :

Anda bisa Mengganti warna Popular Posts Backgrounds background color1, background color2, background color3, background color4, background color5

popular posts background setup

Selamat Mencoba Dan semoga berhasil. Salam Blogger Sejati.... wkkkkkkkk

..: senggol dikit...don't forget for your coment ! :..
Masukan alamat Email kamu disini untuk mendapatkan artikel terbaru..!

Artikel Yang Berhubungan



advertisment zona

Comments :

1

You need to take part in a contest for one of the greatest blogs online.
I am going to highly recommend this site!

My page - meses

Anonim mengatakan... Reply Comment
on 

Posting Komentar

Terimaksih atas Komentar anda, Semoga Blog ini menjadi lebih baik. Salam....

← Previous Post Next Post → Home
Related Posts Plugin for WordPress, Blogger...
 
Hgpromo.org