Cara Membuat Widget Popular Post Warna Warni

Cara Membuat Widget Popular Post Warna Warni


Pada kesempatan kali ini kita akan membahas bagaimana membuat widget popular post warna warni,dimana tiap postingan akan berbeda warnanya dengan postingan yang lain yang ada dalam widget popular post.

 Bagaimana cara pemasangannya ?

1. Langkah pertama masuk ke dashboard blogger anda.
2. Selanjutnya klik Tata Letak » Tambah Gadget » Popular Post/Postingan Pupuler » Simpan.



3. Selanjutnya klik Tema/Template » Edit HTML.
4. Cari .popular-posts atau .popular posts { gunakan Ctrl+F untuk mempercepat pencarian.Biasanya .popular-posts ini terletak pada bagian CSS template,selanjutnya ganti dengan CSS yang ada di bawah ini

Style Pertama

/* Custom CSS for Blogger Popular Post Widget */
.PopularPosts ul,
.PopularPosts li,
.PopularPosts li img,
.PopularPosts li a,
.PopularPosts li a img {
margin:0 0;
padding:0 0;
list-style:none;
border:none;
background:none;
outline:none;
}
.PopularPosts ul {
margin:.5em 0;
list-style:none;
color:black;
counter-reset:num;
}
.PopularPosts ul li img {
display:block;
margin:0 .5em 0 0;
width:50px;
height:50px;
float:left;
}
.PopularPosts ul li {
background-color:#eee;
margin:0 10% .4em 0 !important;
padding:.5em 1.5em .5em .5em !important;
counter-increment:num;
position:relative;
}
.PopularPosts ul li:before,
.PopularPosts ul li .item-title a, .PopularPosts ul li a {
font-weight:bold;
color:#000 !important;
text-decoration:none;
}
.PopularPosts ul li:before {
content:counter(num) !important;
display:block;
position:absolute;
background-color:#333;
color:#fff !important;
width:22px;
height:22px;
line-height:22px;
text-align:center;
top:0px;
right:0px;
padding-right:0px !important;
}
/* Set color and level */
.PopularPosts ul li:nth-child(1) {background-color:#A51A5D;margin-right:1% !important}
.PopularPosts ul li:nth-child(2) {background-color:#F53477;margin-right:1% !important}
.PopularPosts ul li:nth-child(3) {background-color:#FD7FAA;margin-right:1% !important}
.PopularPosts ul li:nth-child(4) {background-color:#FF9201;margin-right:1% !important}
.PopularPosts ul li:nth-child(5) {background-color:#FDCB01;margin-right:1% !important}
.PopularPosts ul li:nth-child(6) {background-color:#DEDB00;margin-right:1% !important}
.PopularPosts ul li:nth-child(7) {background-color:#89C237;margin-right:1% !important}
.PopularPosts ul li:nth-child(8) {background-color:#44CCF2;margin-right:1% !important}
.PopularPosts ul li:nth-child(9) {background-color:#01ACE2;margin-right:1% !important}
.PopularPosts ul li:nth-child(10) {background-color:#94368E;margin-right:1% !important}
.PopularPosts .item-thumbnail {
margin:0 0 0 0;
}
.PopularPosts .item-snippet {
font-size:11px;
}
.profile-img{
display:inline;
opaciry:10;
margin:0 6px 3px 0;
}


Style kedua

.popular-posts {
    max-width: 400px;
    margin: 0 auto;
}
.f-title {
    background-color: #eeeeee; 
    padding: 15px 0px;
    margin-bottom: 20px;
    text-align:center;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
h1 {
    margin: 0px;
    color: #212121;
    font-weight:100;
}
.f-website {
  position: fixed;
  bottom: 0px;
  right: 0px;
}
.f-website h2{
  margin:0;
  font-size: 24px;
  font-weight: 100;
  padding: 5px 10px;
  font-style: italic;
  color: #EEE;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.98), 2px 2px 0px rgba(0, 0, 0, 0.96), 3px 3px 0px rgba(0, 0, 0, 0.94), 4px 4px 0px rgba(0, 0, 0, 0.92), 5px 5px 0px rgba(0, 0, 0, 0.9), 6px 6px 0px rgba(0, 0, 0, 0.88), 7px 7px 0px rgba(0, 0, 0, 0.86), 8px 8px 0px rgba(0, 0, 0, 0.84), 9px 9px 0px rgba(0, 0, 0, 0.82), 10px 10px 0px rgba(0, 0, 0, 0.8), 11px 11px 0px rgba(0, 0, 0, 0.78), 12px 12px 0px rgba(0, 0, 0, 0.76), 13px 13px 0px rgba(0, 0, 0, 0.74), 14px 14px 0px rgba(0, 0, 0, 0.72), 15px 15px 0px rgba(0, 0, 0, 0.7), 16px 16px 0px rgba(0, 0, 0, 0.68), 17px 17px 0px rgba(0, 0, 0, 0.66), 18px 18px 0px rgba(0, 0, 0, 0.64), 19px 19px 0px rgba(0, 0, 0, 0.62), 20px 20px 0px rgba(0, 0, 0, 0.6), 21px 21px 0px rgba(0, 0, 0, 0.58), 22px 22px 0px rgba(0, 0, 0, 0.56), 23px 23px 0px rgba(0, 0, 0, 0.54), 24px 24px 0px rgba(0, 0, 0, 0.52), 25px 25px 0px rgba(0, 0, 0, 0.5), 26px 26px 0px rgba(0, 0, 0, 0.48), 27px 27px 0px rgba(0, 0, 0, 0.46), 28px 28px 0px rgba(0, 0, 0, 0.44), 29px 29px 0px rgba(0, 0, 0, 0.42), 30px 30px 0px rgba(0, 0, 0, 0.4), 31px 31px 0px rgba(0, 0, 0, 0.38), 32px 32px 0px rgba(0, 0, 0, 0.36), 33px 33px 0px rgba(0, 0, 0, 0.34), 34px 34px 0px rgba(0, 0, 0, 0.32), 35px 35px 0px rgba(0, 0, 0, 0.3), 36px 36px 0px rgba(0, 0, 0, 0.28), 37px 37px 0px rgba(0, 0, 0, 0.26), 38px 38px 0px rgba(0, 0, 0, 0.24), 39px 39px 0px rgba(0, 0, 0, 0.22), 40px 40px 0px rgba(0, 0, 0, 0.2), 41px 41px 0px rgba(0, 0, 0, 0.18), 42px 42px 0px rgba(0, 0, 0, 0.16), 43px 43px 0px rgba(0, 0, 0, 0.14), 44px 44px 0px rgba(0, 0, 0, 0.12), 45px 45px 0px rgba(0, 0, 0, 0.1), 46px 46px 0px rgba(0, 0, 0, 0.08), 47px 47px 0px rgba(0, 0, 0, 0.06), 48px 48px 0px rgba(0, 0, 0, 0.04), 50px 50px 0px transparent;
}
/*-------------------------*/
.popular-posts ul {
    padding: 0;
    border-radius: 2px;
    border: 0;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}
.popular-posts ul li {
    box-sizing: border-box;
    list-style-type: none;
    margin: 0;
    padding: 10px 10px 10px 72px !important;
    min-height: 68px;
    line-height: 1.5rem;
    height: inherit; 
    position: relative;
}
.popular-posts ul li:nth-child(1) { 
    background-color: #dB7093;
}
.popular-posts ul li:nth-child(2) { 
    background-color: #00bcd4;
}
.popular-posts ul li:nth-child(3) { 
    background-color: #009688;
}
.popular-posts ul li:nth-child(4) { 
    background-color: #9932cc;
}
.popular-posts ul li:nth-child(5) { 
    background-color: #cddc39;
}
.popular-posts ul li:nth-child(6) { 
    background-color: #00ff00;
}
.popular-posts ul li:nth-child(7) { 
    background-color: #ffc107;
}
.popular-posts ul li:nth-child(8) { 
    background-color: #ff9800;
}
.popular-posts ul li:nth-child(9) { 
    background-color: #dc143c;
}
.popular-posts ul li:nth-child(10) { 
    background-color: #808000;
}
.popular-posts ul li:hover {
    background-color: #757575;
}
.popular-posts ul li a {
    color: #FFF;
    text-decoration: none;
}
.popular-posts ul li a:hover {
    color: #EEE;
}
.popular-posts ul li img {
    width: 42px;
    height: 42px;
    position: absolute;
    padding: inherit;
    border-radius: 50%;
    overflow: hidden;
    left: 15px;
    border: 0;
    display: inline-block;
    vertical-align: middle;
}


Selanjutnya klik Simpan tema,silahkan mengganti kode warnanya sesuai selera anda.Bila masih ada yang kurang paham silahkan sampaikan pertanyaan pada kolom komentar.

Semoga artikel ini bermanfaat bagi anda semua dan selamat mencoba
Baca Juga

Subscribe to receive free email updates:

0 Response to "Cara Membuat Widget Popular Post Warna Warni"

Post a Comment