Thursday, March 19, 2015

Edit Popular Post


Cara Edit Popular Post
  1. Buat dulu Popular Post
  2. Ketengahkan tulisan Popular Post

     Simpan Script ini di CSS

     /*Judul Popular Posts menjadi Center an textnya huruf besar semua*/
     #PopularPosts1 h2 {text-align: center; font-size: 13px; text-transform: uppercase;}
      
  3. Atur jenis font Judul Popular Postnya, Klik Gadget di Perancangan Template Blogger/Pilih Jebnis Font Times New Roman/Atur warna judul menjadi hitam dan warna alternatif menjadi abu2

  4. Sekarang tambahkan background warna abu2 judul menu di sidebar
    Caranya simpan script ini di CSS

    /*background menu sidebar warna abu2 dengan text warna hitam dan border*/
     .sidebar .widget H2 {
     background: #eee;
     border-top: 0px solid #DDDDDD;
     border-bottom: 0px solid #DDDDDD;
     border-left: 0px solid #DDDDDD;
     border-right: 0px solid #DDDDDD;
     margin: 0px 0px 10px 0px;
     line-height: 1.25;
     border: 2px solid #a1a1a1;/*buat bikin tepinya lengkung*/
     padding: 10px 40px;
     background: #dddddd;
     border-radius: 0px;
     }

      
  5. Lalu simpan Script Design Popular Post ini di CSS

     /*edit Popular Post*/
     #PopularPosts1 h2{
     padding:7px 0 3px 0;
     width:100%;
     margin-bottom:10px;
     font-size:1.3em;
     text-indent:-12px;
     font-size:18px;
     text-align:center;
     color: #757575; /* Color of the widget's title warna abu2 */
     }
     #PopularPosts1 ul{
     list-style:none;
     counter-reset:li;
     padding:8px 0px 1px;
     left:-7px;
     width:290px;
     }
     #PopularPosts1 li{
     position:relative;
     margin:0 0 10px 0;
     padding: 3px 2px 0 17px;
     left:-5px;
     width:240px;
     }
     #PopularPosts1 ul li{
     background: #eee;
     position: relative;
     display: block;
     padding: .4em .2em .4em 2em;
     *padding: .2em;
     margin: .5em 0;
     background: #ddd;
     text-decoration: none;
     border-radius: .3em;
     transition: all .3s ease-out;
     }
     #PopularPosts1 ul li:before{
     content: counter(li);
     counter-increment: li;
     position: absolute;
     top: 50%;
     margin: -1.3em;
     height: 2em;
     width: 2em;
     line-height: 2em;
     font-size: 15px;
     color: #fff; /* text color of numbers */
     background: #FB8835; /* background color of numbers warna kuning */
     border: .2em solid #fff; /* border color */
     -webkit-box-shadow: 0 8px 5px -7px #888;
     -moz-box-shadow: 0 8px 5px -7px #888;
     box-shadow: 0 8px 5px -7px #888;
     text-align: center;
     font-weight: bold;
     border-radius: 2em;
     position: absolute;
     left: 0;
     transition: all .3s ease-out;
     }
     #PopularPosts1 ul li:hover{
     background: #eee;
     }
     #PopularPosts1 ul li:hover:before{
     transform: rotate(360deg);
     }
     #PopularPosts1 ul li a{
     font: 14px Georgia, serif; /* font size of post titles */
     text-shadow: 0 -1px 2px #fff;
     color: #444;
     display:block;
     min-height:25px;
     text-decoration:none;
     text-transform: uppercase;
     }
     #PopularPosts1 ul li a:hover{
     color: #444;
     }

    Sumber: Sumber: http://www.thebloggerguide.com/2014/09/5-stylish-popular-post-widget-for.html



      
  6. Edit lagi menjadi seperti ini Script diatas
    #PopularPosts1 ul li:before{
     content: counter(li);
     counter-increment: li;
     position: absolute;
     top: 50%;
     margin: -1.3em;
     height: 2em;
     width: 2em;
     line-height: 2em;
     font-size: 15px;
     color: #fff; /* text color of numbers */
     background: #000; /* background color of numbers warna hitam */
     border: .2em solid #fff; /* border color */
     -webkit-box-shadow: 0 8px 5px -7px #888;
     -moz-box-shadow: 0 8px 5px -7px #888;
     box-shadow: 0 8px 5px -7px #888;
     text-align: center;
     font-weight: bold;
     border-radius: 2em;
     position: absolute;
     left: 0;
     transition: all .3s ease-out;
     }
      

  7. Untuk Memunculkan judulnya saja di link list Popular Post, pilih di widget nya

No comments:

Post a Comment

Share this posts