Add Random Posts Widget to Blogger

If you want to increase the number of page impression, this widget might help you.The Random Posts Widget will show random posts you have added to your blog. The main advantages of this widget is that it is loading pretty fast and shows thumbnails of your posts too, along with the comments link.How to add Random Posts Widget to BloggerStep 1. Log in to Blogger Dashboard, go to >> Design >> Edit HTMLStep 2. Check “Expand Widget Templates”Step 3. Find the following piece of code: ]]> Step 4. Just above it, paste the code below : #random-posts img{float:left;margin-right:10px;border:1px solid #999;background:#FFF;width:36px;height:36px;padding:3px} Save Template.Step 5. Go to Design >> Page Elements and Add a new HTML/JavaScript GadgetStep 6. In the HTML box, paste this code:
 var rdp_numposts=5;var rdp_snippet_length=150;var rdp_info=’yes’;var rdp_comment=’Comments’;var rdp_disable=’Comments Disabled’;var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write(”);function getvalue(){for(var i=0;ifunction random_posts(json){for(var i=0;i]*>/g,””);if(rdp_get_snippet.length’);document.write(”);document.write(”+rdp_posttitle+”);if(rdp_info==’yes’){document.write(”+rdp_postdate.substring(8,10)+’/’+rdp_postdate.substring(5,7)+’/’+rdp_postdate.substring(0,4)+’ – ‘+rdp_commentsNum)+”}document.write(”)}};getvalue();for(var i=0;i’)}; Note: Replace no.5with the number of posts you want to be show.Step 7. Press Save and Enjoy 🙂
DO YOU LIKE THIS T-SHIRT?

Aly Chiman

Aly Chiman is a Blogger & Reporter at AlyChiTech.com which covers a wide variety of topics from local news from digital world fashion and beauty . AlyChiTech covers the top notch content from the around the world covering a wide variety of topics. Aly is currently studying BS Mass Communication at University.

Leave a Reply

Your email address will not be published.