When blogger released Popular Posts widget back in 2011, we leaked out its stylesheet so that you can customize it to blend it perfectly to your BlogSpot templates. Today we will learn how to display the list of popular posts using CSS3 auto increment property. You can style the numbers in variety of shapes, we styled them in square/rectangular and circular shape. you guys were the first to display threaded comments with Comment Counts and today you will again learn something more interesting. You can see a practical demo of this implementation on our sidebar. Lets add this effect to blogger in fairly easy steps using pure styles with no use of JavaScript.
Popular posts widget is an effective tool to increase your blog pageviews and engage readers more on your blog. It fetches and ranks posts based on most visited pages using your Google analytics data.
Add Popular Posts Widget
- Go to Blogger > Layout
- Click "Add a Gadget"
- Choose "Popular Posts" from the list
- You will need to configure its settings as shown in the image below: uncheck "image thumbnail" and also "snippet" Its better that you display at most 7-9 posts. Less is good and clean.
5. Save it
Customize Popular Posts Plugin
Now you need to change the default styles and change its look to our desired design using Custom styles.
- Go To Blogger > Template
- Backup your Template
- Click Edit HTML
- Search for </b:skin>. Click the black arrow to expand the code.
5. Paste the following Styles just above </b:skin>
/*--- MBT Popular Posts --- */
.popular-posts ul {
padding-left: 0px;
counter-reset: popcount;
}.popular-posts ul li:before {
list-style-type: none;
margin-right: 15px;
padding: 0.3em 0.6em;
counter-increment: popcount;
content: counter(popcount);
font-size: 16px;
background: #292D30;
color: #ffffff;
position: relative;
font-weight: bold;
font-family: georgia;
float: left;
border: 2px solid #dddddd;
box-shadow: 1px 2px 9px #666666; }.popular-posts ul li {
border-bottom: 1px dashed #dddddd;
}.popular-posts ul li:hover {
border-bottom: 1px dashed #696969;
}.popular-posts ul li a {
text-decoration:none; color:#5A5F63;
}
.popular-posts ul li a:hover {
text-decoration:none;
}
Customization:
- To change the background color of the Square bubble edit #292D30
- To change the text color of the bubble edit #ffffff
- By default the shape of the bubble is Square. To change it to Circle simply add the following code just after box-shadow: 1px 2px 9px #666666;
border-radius:15px;
6. Save your template and you are all done!
Visit your blog to see it working just perfectly.
If you would wish to add it inside a Multi Tab Widget just like we have done on our blog, then you can find several tutorials on our blog that were released years ago on Multi Tabs. Please read one below:
Need Help?
I just hope you would find this tutorial easy and yet exciting. Please let me know if you need any help. I just hope you continue adding more colors and flavors to your beautiful blogs. Wish you success and peace buddies. :)
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »
A great blog,....
ReplyDeleteperfectly useful & informative
Thank you so much!!
DeleteAwesome widget! Will use in mine blog new design! :D
ReplyDeleteOh sure you must not delay! :d
DeleteAnother amazing post bro. Keep it up.
ReplyDeleteLet me dare to try :) I am not a coding person :( so always dread to implement but really want to do it :)
ReplyDeleteGreat! Thank you so much
ReplyDeleteIt worked for me by another method by placing the code in CSS not in Template :)
superb article..i implemented it on my blog http://www.webcodeexpert.com/ and it look awesome..i suggest all the bloggers to follow this article to give their blog superb look.thanks mohammad
ReplyDeleteNice Widget Mustafa Sir.
ReplyDeleteBeautiful Wedget Mustafa Brother, its really look like nice and amazing.
ReplyDeletewow nice one, can i use it with picture enabled?
ReplyDeleteCheers,
trigonalworld.com
Yes sure you can use it even with your images enabled but do you really think that will look nice? :)
DeleteWhen I get really cool! Thanks, keep up the good work with the incredible lessons.
ReplyDeleteThanks for sharing bro mustafa
ReplyDeleteSo Muhammad is back..huh..:-)
ReplyDeleteI missed a lot your presence on this blog..:/
After seeing your work it seems like you are really free from the exams :-D
As usual and like thousand of I will also say others Muhammad your work is awesome..
→ this work of mine will seem like nothing..before your knowledge and talent and passion...Sounds like a disciple is teaching his own teacher..;-D
http://trackbloggers.blogspot.in/2013/05/multicolored-labels-widgets-for-blogger.html
This comment has been removed by a blog administrator.
ReplyDeleteFirst of all, remove the CSS of that Popular posts widget that you are already using in your blog. Then untick snipping and thumbnail option by editing popular posts widget. Finally, Copy the CSS and paste it above </b:skin> . Hope it will work now :D
Deletei REALLY LOVE THIS. BUT I GOT A PROBLEM WITH YOUR BLOG. ITS SLOWS DOWN MY BROWSER.
ReplyDeleteReally? But it is the same widget provided by blogger. We only changed its stylesheet. you better upgrade your Net speed then Stefn! ;p
DeleteBro I'm waiting for this new commenting system release anxiously. Please release it soon :D
ReplyDeleteMohammad, I left a comment before but looks like it got deleted. This widget is not working on my blog unfortunately. Please have a look:
ReplyDeletehttp://cricketnns.blogspot.com
Thank you so much!
Mohammad Bro, I tried this 3 times on my blog, but it's not working. i dont know why, please check my mistakes please
ReplyDeletemy blog: dailyhealthdairy.blogspot.com
i use Salahudeen Ayubi template.
thanks and God bless bro.
hey hemant
ReplyDeletei have also upgarded to custom domain but my site is not opening at custom domain, you can check it www.windowsreloded.com
it open at windowsreloded.blogspot.com
please help??
i also registered domain from godaddy and it's not opening directly and i have to open it through blogspot
Update:
ReplyDeleteFor all those for whome the above code is not working kindly use the following instead becaue Blogger sucks sometime. This one will work just fine! :)
/*--- MBT Popular Posts --- */
.popular-posts ul {
padding-left: 0px;
counter-reset: popcount;
}
.popular-posts ul dd:before {
list-style-type: none;
margin-right: 15px;
padding: 0.3em 0.6em;
counter-increment: popcount;
content: counter(popcount);
font-size: 16px;
background: #292D30;
color: #ffffff;
position: relative;
font-weight: bold;
font-family: georgia;
float: left;
border: 2px solid #dddddd;
box-shadow: 1px 2px 9px #666666; }
.popular-posts ul li {
border-bottom: 1px dashed #dddddd;
}
.popular-posts ul dd:hover {
border-bottom: 1px dashed #696969;
}
.popular-posts ul dd a {
text-decoration:none; color:#5A5F63;
}
.popular-posts ul dd a:hover {
text-decoration:none;
}
Thanks a bunch Mohammad!
DeleteCheers,
Sai Ram
thanks now it is working
ReplyDeleteMohammad (MBT), have a look at this:
Deletehttp://danishasad786.blogspot.com/2013/06/popular-posts-widget-with-automatic.html
This useless idiot just copied your post, made it his, and even has made the template his without respecting copyrights. Danish, learn to respect others first you piece of two clutz crap...
Oh wow, what a great popular posts! I really like the new style of popular posts. :)
ReplyDeleteFailed to apply it on my bellow blog :(
ReplyDeletehttp://brahvitime.blogspot.com/
thanx
ReplyDeleteCan you please give us the code for something like in a horizontal bar with automatic numbering like yours which shows ....
ReplyDeleteLove this! Thanks very much.
ReplyDeleteI tried both of your codes (the one mentioned in the post and the one mentioned int the comments as 'update') and they are not working on my blog. witheredpapyrus.blogspot.com
ReplyDeleteMy question is:
- how can just adding a code after result into a new design? Some existing code has to be replaced, right? You have just mentioned that copy the code above . But what about existing code? Should it be deleted ? Should it be kept as it is? Please clarify.
a and must have widget
ReplyDeleteAPK MANIA NEW - APK Full Games and Apps
thats something extremely awesome sir!
ReplyDeleteBut i would like to take your minute.
Would u please explain to implement this coding for my 'Pages list' as well? I would be extremely honored by your help.
Check my blog to see the need of this implementation
http://compenggworld.blogspot.com
http://snap-how.blogspot.in/
ReplyDeleteHello sir....In my case auto numbering not working.Please help me sir
ReplyDeletePlease give any tips or i think any codings which facilates this autonumbering missed in my template
www.mytechblaze.com
This comment has been removed by the author.
ReplyDeleteThanks for all of your blog tricks. I am also using your template.Thank you very much.
ReplyDeleteThanks For All
ReplyDeleteBratz Games
hi sir??
ReplyDeletehow to show the popular post just title without description???
i have done for my question. Thanks
ReplyDeleteawesome
ReplyDeletei try right away
please visit my website as well
thanks
Sir.i have installed it on my blog but it show only 1 number in bubble.please help sir
ReplyDeletethis is to excellent wedget for every new blogger i added the wedget in my own blog and after the added my blog is loking nice tnxx buddy for this beautifull artical
ReplyDeleteThanks so much for this wonderful work. I did it and it works, excellent.
ReplyDelete