How to Add Twitter Widget to Your Blog in Two Steps

By Angsuman Chakraborty, Gaea News Network
Wednesday, January 7, 2009

Twitter has become phenomenally popular around the world. So if you are an avid blogger and a twitterer yourself, then you must be wondering how to synchronize them both? Here is a simple trick that will add twitter gadget to your blog so that you can be updated on both in a single window.

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="https://twitter.com/itsme“>follow me on Twitter</a>
< /div>
< script src=”https://twitter.com/javascripts/blogger.js” type=”text/javascript”>< /script>
< script src=”https://twitter.com/statuses/user_timeline/itsme.json?callback=twitterCallback2&count=10” type=”text/javascript”>
< /script>

Repace itsme by your twitter username. You can also select the number of message updates you want to display by changing the twitterCallback2&count=10 part to any number.

Happy blogging and twitering.

[Eliminate the space between < and any other string in the code.]

Discussion
February 24, 2010: 2:18 pm

Great instruction, hint, idea what ever :-) Thanks a lot.

October 28, 2009: 5:02 pm

it does not work on my blog buddy how do u suggest???

August 4, 2009: 4:07 pm

Thanks for the tip.
I managed to embed the badge to my posts, hopefully people will start tweeting my posts!


Saideep
July 3, 2009: 7:06 am

Hi nice one :D


Venkat
July 1, 2009: 11:54 am

Hello,

Can you please help me how to beautify the feeds I get, instead of ol elements and customize the font and other css

Cheers,
Venkat

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :