How to style Popular Posts Widget #2

September 14, 2016 January 12, 2018

How to do this tutorial

Before you do this tutorial, I recommend you to back up your Blogger template, you can see How to back up and restore blogger template

Step 1

Log in to Blogger.com

Step 2

After log in, select Template > Edit HTML

Step 3

Then search code </head>, and paste following CSS right above that code:
<style type='text/css'>
/* Popular Post */
.PopularPosts .widget-content ul li{padding:.7em 0}
.PopularPosts ul,.PopularPosts li,.PopularPosts li img,.PopularPosts li a,.PopularPosts li a img{list-style:none;border:none;background:none;outline:none;margin:0;padding:0}.PopularPosts ul{list-style:none;font-size:15px;color:#fff;margin:0 !important;width:100% !important;font-weight:bold}.PopularPosts ul li img { display: block; transition: all 400ms ease-in-out; width: 60px; height: 60px; float: left;  border: 4px solid rgba(0,0,0,0.2);margin-right: 5px;}
.PopularPosts ul li img:hover{border:4px solid rgba(0,0,0,0.5);transition:all 400ms ease-in-out}.PopularPosts ul li{background-color:#eee;counter-increment:num;position:relative;margin:0 10% 0 0;padding-left:35px!important;}.PopularPosts .item-title{text-overflow: ellipsis;overflow:hidden;}.PopularPosts ul li:before,.PopularPosts ul li .item-title a{font-size:15px !important;color:inherit;text-decoration:none}.PopularPosts ul li:before{content:counter(num);display:block;position:absolute;font-size:35px !important;font-weight:700;color:rgba(0,0,0,0.2);top:40%;left:9px;}
.PopularPosts ul li{margin:0 !important;padding:10px 5px 10px 40px}
.PopularPosts ul li:nth-child(1){background-color:#5d93b2}.PopularPosts ul li:nth-child(2){background-color:#67b8b3}.PopularPosts ul li:nth-child(3){background-color:#67c27a}.PopularPosts ul li:nth-child(4){background-color:#ee9f7e}.PopularPosts ul li:nth-child(5){background-color:#ea6868}.PopularPosts ul li:nth-child(6){background-color:#b65757}.PopularPosts ul li:nth-child(7){background-color:#e9c462}.PopularPosts ul li:nth-child(8){background-color:#84d558}.PopularPosts ul li:nth-child(9){background-color:#4dd38c}.PopularPosts ul li:nth-child(10){background-color:#b44d7a}
</style>
Note: You have to delete all existing CSS of Popular Post Widget if using above CSS

Save your Template

Step 4

Back to your Blog Dashboard, then add Widget Popular Posts, see How to Add Gadgets - Widgets to Blogger

Now going to your Blog and see Result

0 comments for How to style Popular Posts Widget #2