September 3, 2011

Widgets

Add Rotating Slides Of Popular Posts Widget To Blogger


popular posts sliderMy brother Abu-farhan has created an amazing script that transforms the popular posts widget provided by blogger into a a vertical content slider  that updates automatically. His script really impressed me and I thought of sharing this great slideshow widget with all of you. It is extremely easy to install this widget on blogger. You only need to paste the code inside a HTML/Javascript widget. This new script works on all major browsers and can easily be customized. I have further edited the code to give it a little better color theme. No thumbnail images will appear if you have not added any image in your posts. Posts which are viewed most will be picked by blogger stats widget and displayed through this new gadget.

 

Live Demo

Adding Popular Posts Rotating Slides Widget

  1. Go To Blogger > Design
  2. Click add a gadget
  3. Choose Popular Posts Widget provided by blogger
  4. Keep post number greater than 4
  5. Save your widget
  6. Now select an HTML/Javascript widget
  7. Paste the following slide code inside it,

<style type="text/css" media="screen">

#PopularPosts1 {
overflow:hidden;
margin-top:5px;
width:100%;
padding:0px 0px;
height:310px;


}

#PopularPosts1 ul {
width:310px;
overflow:hidden;
list-style-type: none;
padding: 0px 0px;
margin:10px 0px 0px 10px;
}

#PopularPosts1 li {
 width:290px;
padding: 5px 5px;
margin:0px 0px 5px 0px;
list-style-type:none;
float:none;
height:80px;
overflow: hidden;
background:#fff url(http://4.bp.blogspot.com/-AexFsTTa33c/TmFNoxg9zSI/AAAAAAAAE6I/7K8bPKYBr8Q/s400/popular%2Bposts.jpg) repeat-x;
border:1px solid #ddd;
}

#PopularPosts1 li .item-title {
   
    font-size:1em;
    margin-bottom:0.5em;
}

#PopularPosts1 li .item-title a {
text-decoration:none;
color:#7CA2C4;
font:bold 12px verdana;

height:18px;
overflow:hidden;
margin:0px 0px;
padding:0px 0px 2px 0px;
}

#PopularPosts1 li img {
float:left;
margin-right:5px;
background:#EFEFEF;
border:2px solid #7CA2C4;
}

#PopularPosts1 li .item-snippet {
  overflow:hidden;
font-family:Tahoma,Arial,verdana, sans-serif;
font-size:10px;
color:#289728;
padding:0px 0px;
margin:0px 0px;
}

#PopularPosts1 .item-snippet a,
#PopularPosts1 .item-snippet a:visited {
    color:#3E4548;
    text-decoration: none;
}

#PopularPosts1 .spyWrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

#PopularPosts1 {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.tags span,
.tags a {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
}

a img {
    border: 0;
}

-->
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
    $('.popular-posts ul').simpleSpy();
});
</script>
<script src="http://accordion-for-blogger.googlecode.com/svn/trunk/simplespy.js" type="text/javascript"></script>

 

Keep the two widgets together. One on top of another as shown below,

popular-posts widget

 

Make Changes To Colors and Fonts

Not all of you uses a white background for your blogs and some of you may wish to have complete control over the appearance of the widget. I am listing below important areas which you can edit to let the widget perfectly blend your template.

  • To Change Widget container height edit height:310px;
  • To change the small rectangles width edit width:310px
  • To change width of the text snippet then edit width:290px;. Keep this width 20px smaller than the rectangles width. For example in this widget I have kept rectangles width=310px; and snippet width=290px;
  • To change link title color and font size edit color:#7CA2C4;
    font:bold 12px verdana;
  • To change thumbnail image's border colour and size edit border:2px solid #7CA2C4
  • To change the snippet text's font size, family and colour then edit the yellow highlighted code

What if your template background colour is black or dark?

In such a case replace the following code,

background:#fff url(http://4.bp.blogspot.com/-AexFsTTa33c/TmFNoxg9zSI/AAAAAAAAE6I/7K8bPKYBr8Q/s400/popular%2Bposts.jpg) repeat-x;

with this,

background:#ffffff;

Replace #ffffff with your background color. Use our color generator tool.

I hope you like this widget and find it useful. Please let me know if you needed any help. Peace brothers. :>




If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

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 »

53 comments:

Lasting Rose on Sep 3, 2011, 10:21:00 AM said... #

Hell Abu,

I have your code installed, however the widget doesn't rotate. I guess there is an issue with the different jscript versions, all being used together, your calling 1.6.2 doesn't work when other versions are called before. This is a problem with several scipts available for add on to blogger. Theoretically the latest version should be backward compatible, but it doesn't work. Do you have any solution?

profmaster on Sep 3, 2011, 11:36:00 AM said... #

Hey its working. Can you modify it for recent comments also.

Tanisha on Sep 3, 2011, 1:17:00 PM said... #

Thanks for sharing Good One http://www.developerscode.com/

ELITIST TRIAD on Sep 3, 2011, 2:22:00 PM said... #

the trick z absolutely fabulous..it working fine..danx brer...dis z my blog http://pingstuff.blogspot.com/...hope u visit this

Mohammad Mustafa Ahmedzai on Sep 3, 2011, 9:04:00 PM said... #

@Lasting Rose
I guess you are using the classic version of blogger and not the upgraded beta version. This widget works only with Beta blogger and not on classic templates.:)

@profmaster
Since comments don't use thumbnails so this widget wont look nice with it but still I will see if the code could be altered. :)

@ELitist
Always welcomed pal. :)

Lasting Rose on Sep 3, 2011, 11:15:00 PM said... #

@Mohammad Mustafa Ahmedzai

Hello Mohamad,
Iam using


http://lastingrose.blogspot.com/


Blogger Template Style
Name: Picture Window
Designer: Josh Peterson
URL: www.noaesthetic.com
----------------------------------------------- */
I guess it is the Beta
I had the RECENT POST widget with jquerry 1.3.2 installed and working but now neither widget is working. I guess it is a problem of multiple versions of Jquerry. Do you have any example of a blogger site where both are working ?
Download: eType1.com/f.php

Ana Laura on Sep 4, 2011, 12:01:00 AM said... #

It worked perfectly well, thank you very much!!!

Mohammad Mustafa Ahmedzai on Sep 6, 2011, 6:27:00 AM said... #

@Lasting rose
Thanks for sharing URL of your blog. As you can clearly see that your blog is already making use of Jquery tools everywhere. For this widget to work perfectly the code must not be conflicted with the presence any other Jquery programmed widget. Usually when jquery is called by multiple elements on a webpage, then 3/4 widgets would function whilst the one would not. If you test the same code on any of your test blog where you dont have so many widgets installed then you will observe clearly that the slides would rotate just perfectly.

My friendly advice always is : "Show more of text and less of media(videos, audios, graphics, ajax widgets, jquery tools etc)on your blogs for higher Search engine rankings"

Hope this helps brother.

@Ana
always welcomed ana.

Lasting Rose on Sep 8, 2011, 10:44:00 PM said... #

Hello Ahamad,

Many thanks for your reply. As the two scripts I use for Recent posts and Popular posts are written by you, on using Jquerry 1.3.2 and the other using 1.6.2, I was wondering perhaps you could optimise both by using the same version. Alternativey you could modify the function calls as suggested in this article.
http://stackoverflow.com/questions/528241/how-do-i-run-different-versions-of-jquery-on-the-same-page

I appreciate your suggestion to minimise the use of scripts in a page but I guess for proper navigation and better visibility scripts like yours are a big advantage. Please see my article http://technorati.com/blogging/article/how-your-blog-navigation-can-send/

alexa on Sep 13, 2011, 12:54:00 PM said... #

hello dear Mohammad thx for share this usefull widget .i need your help .. i try to install this widget in my blog page its rotate fine height size good but Problem is width size its not show perfect its show slim size not show all info with pic just show pic and some text plz help me out how can use this widget thx in advance
here is my blog url plz check http://jaycutlerbest.blogspot.com/

Muahamad Nuh on Sep 19, 2011, 9:05:00 PM said... #

Oh... Thank you very much...

নিঝুম মজুমদার on Sep 30, 2011, 9:28:00 PM said... #

Hi Dear, This widget is working but it is shoing only few lines from my post. Is it posible to show about 10-20 lines in the slide show. if yes, could you please tell me how. I am waiting to hear from you.
Regards
Maruf

Fabian on Oct 15, 2011, 6:37:00 PM said... #

Thanks a lot!
A great way to modifie the popular post widget in blogger. I had to do some modifications to the given code so that it matches to my blog-layout and -design. Moreover I chosed a bigger size for the shown posts an let the text float around the thumbnail. Now it just looks perfekt!
You can see it on my blog http://miatastyle.blogspot.com/
Regards Fabian

Pinoybuzzter! on Nov 8, 2011, 8:40:00 PM said... #

I have been looking for this for quite a while. I have previously used Abu Farhan's Popular Post Accordion, and it was great. I'd like to try this out for a few days, probably switch between the two every now and then.

Is there anyway to use this for Random Posts? Thanks!

Please check my site out: HTTP://PINOYBUZZTER.BLOGSPOT.COM

Abu Aqif Studio on Nov 16, 2011, 2:19:00 PM said... #

http://abuaqifstudio.blogspot.com/

tried but not working.. not rotating at all..

Brenosilver on Dec 1, 2011, 12:02:00 PM said... #
This comment has been removed by the author.
Brenosilver on Dec 1, 2011, 12:19:00 PM said... #

Hello, I tried to install this code on my blog, however it is not working. The Popular posts is blank without any posts when I install it on my right sidebar >> when I install below the post works great. I think I have to modify some size, however I tried a bunch and couldn't make it work.

Help plz?

http://can-you-do-this.blogspot.com/

Vânia Conci on Dec 22, 2011, 2:02:00 AM said... #

It is possible to increase the time between the transition?

Cait on Jan 23, 2012, 1:31:00 AM said... #

I was looking for something like this and this works very well - thank you!

I am also wondering if there is a way to slow down the speed of the transition.

Thanks again

Muhammad Royani on Jan 30, 2012, 7:36:00 AM said... #

mantap gan

Cheap Home on Feb 1, 2012, 11:29:00 AM said... #

Very beautify Blogg, please keep close posting

නුවන් සම්පත් කුමාර-Sampath Kumara on Feb 1, 2012, 12:24:00 PM said... #

Good and nice

http://faceact.blogspot.com/

chipshoes on Feb 1, 2012, 8:32:00 PM said... #

Members (682)follow balik gan

Agnieszka on Feb 19, 2012, 4:37:00 AM said... #

this is great! truly great! question: is it possible to make it horizontal? (so i can put it to my header)

my blog:
http://skyblueway.blogspot.com/

BlogKing on Mar 8, 2012, 1:33:00 AM said... #

hey friends its not working in my blog http://mithilaworld.blogspot.in/ it is here "all time hits"

Anshul on Mar 20, 2012, 6:40:00 PM said... #

thanx man..
do look at my site www.c0mputertech.in and suggest me somethings..!!

Lahiru Rukshan on Mar 25, 2012, 9:40:00 PM said... #

thanks for share
http://try-this-one.blogspot.com/

JJJYYY on Apr 3, 2012, 6:27:00 AM said... #

Is there a way to wrap the text? I see overflow:hidden

Mr.Fact on Apr 8, 2012, 10:23:00 AM said... #

Can you help me ?? the border and the image have some margin on my blog (http://www.faktanik.blogspot.com).. Why ?? Plz help me .. Thanks a lot..

NAVEED Khan on Apr 24, 2012, 12:44:00 AM said... #

thanks for the wonderful script, loved it will wait for any new transitions you introduce. do keep us updated.

fandroidz.co.nr

JJJYYY on Apr 28, 2012, 5:51:00 PM said... #

I had problems with the text not wrapping but I was able to get it to work by using the modifications posted above by Fabian (site http://miatastyle.blogspot.com/). I also disabled snippets in the popular posts widget. I am happy with the way it is currently working! Thank you MyBloggerTricks and Fabian post.
site is: www.liveholisticnow.com

JayRyan09 on May 16, 2012, 11:00:00 AM said... #

For Blogger Users. I have a beautiful Different/Multi Colored Popular Post With Hover Effect Widget In Blogger.

Come and visit my site: http://www.lifebeyondlimits.info/

Thank you so much.

-jayryan09-

Blog Tariff on May 28, 2012, 4:06:00 PM said... #

Adding simple method of slideout floating - facebook,twitter,googlplus,email subscription box to blogger blog.
www.blogtariff.com

Andry Andreas Panggabean on May 31, 2012, 7:52:00 AM said... #

thanx man..
do look at my site www.andrepanggabean.com and suggest me somethings..!! Cara Menjadi Orang Sukses

Metal Blog Ku on Jun 18, 2012, 6:00:00 PM said... #

Thanks bnget gan ...

Andy Domonkos on Jun 19, 2012, 2:18:00 AM said... #

Very confused on one thing here, maybe someone can help. I have the widget working almost perfectly, accept there is a small bit of white space to the right of the image thumbnail and I cant seem to get rid of it.

I tried decreasing the padding, the margins, almost everything! It just wont go away...

Take a look and tell me what I need to fix please :)

http://suspendeddamnation.blogspot.com/

ar-movie-reviews on Jun 19, 2012, 7:34:00 PM said... #

what about this popular post slider on to? I don't know how to create it. You may want to add a tutorial for it. Thanks

Debbie Navarro on Aug 4, 2012, 9:45:00 AM said... #

@Lasting Rose we have the same problem, mine doesnt rotate too..

Yrnj comunity on Aug 6, 2012, 11:08:00 AM said... #
This comment has been removed by the author.
Yrnj comunity on Aug 6, 2012, 11:10:00 AM said... #

why can not rotate

demo : jogj-MP3.BLOGSPOT.COM

Founder and Career Counselor at "My Career Manager" on Aug 21, 2012, 9:53:00 AM said... #

Thank you! I'd like to slow down the speed of the post rotator. It is too fast to read, so I installed a marquee behavior code. It's still too fast. Is this part of the hidden code?

Also, the writing is beyond the margins and I'd like it to fit the margins. www.mycareermanager.blogspot.com

What do you suggest?

Sharon C.

Founder and Career Counselor at "My Career Manager" on Aug 21, 2012, 9:58:00 AM said... #
This comment has been removed by the author.
admin on Sep 7, 2012, 11:59:00 AM said... #

its working but its good only for white background...not transparent

eyewumi odele on Oct 11, 2012, 12:33:00 AM said... #

NICE, I ACTUALLY THOUGHT IT WAS GOING TO KEEP FLASING OVER WITH DIFFERENT POST BUT THIS AMAZON... TNX

Ose Agenmonmen on Oct 17, 2012, 5:39:00 AM said... #

hi my blog is http://stephneverson.blogspot.co.uk/ but its not rotating

Regnum Financials on Nov 5, 2012, 8:31:00 PM said... #

its working perfect, but can i replace popular post gadget with recent posts? what would be the procedure for that?

Murat Mimar on Dec 5, 2012, 4:13:00 PM said... #

thank you nice posts.araba oyunları

Yasir Zahoor Rather on Dec 10, 2012, 7:23:00 PM said... #

very nice post.. thankss dear..
check my site to order free samples for you
www.orderfreestuff.com

FUNNY STUFF (GH) on Dec 20, 2012, 5:22:00 PM said... #

Hi Mohammad,
I want to know if I could use same widget for my "events" or "announcements" menu. How do i go about it?

Dimang Hour on Dec 21, 2012, 5:42:00 PM said... #

I am using it. It very good. my blog: http://khmerfreetime.blogspot.com/.

Rahul Fulambarkar on Jan 10, 2013, 3:30:00 PM said... #

good widget, and working fine, thanks

Ghulam Mhuhddeen on Feb 5, 2013, 4:10:00 AM said... #

IObit Malware Fighter Pro 1.7.0.0 Thanks dude, nice Post .good admin Thnaxxx

kashif razzaq on Mar 26, 2013, 7:26:00 PM said... #

Well this kind of information is really worth searching for this. It’s good to have these kinds of articles around to keep the information flow steady. Helping those who really can make things right in the future, good work!
Download free games

Click Here To add Comment

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |