Monday, March 9, 2009

Twitter Widget for Blogger

Adding Twitter widget to your blog is really easy. You only have to copy/paste the code into your sidebar. Follow the steps given below to add the widget into your blog's sidebar.

Log in to Blogger. Go to Layout > Page Elements. Click on Add a Gadget. Select HTML/JavaScript from the list. Copy/paste the code given below and Save.





<div id="twitter_div">
<ul id="twitter_update_list"></ul>
<a id="twitter-link" style="display:block;text-align:right;" href="http://twitter.com/ggraha01">follow me on Twitter</a>
</div>
<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline/ggraha01.json?callback=twitterCallback2&count=5" type="text/javascript">
</script>




Replace ggraha01 with your twitter username. count=5 shows 5 twitter updates on the sidebar. Change that number to whatever you want to show that much updates on the sidebar.

Leave your comments and URL of your blog.

No comments:

Post a Comment