Mandula

- web, development, business 
« Back to blog

Adding your Twitter feed to your Posterous sidebar

Posterous a simple and elegant blogging solution. That's why I use it. And.. because I'm too lazy to install, maintain and customise my own Wordpress site (other blogging engines are available).

But after doing some minor customisation of a default theme I wanted to find a way of embedding my Twitter feed into the sidebar. As there is not direct way for doing this I used the following method to embed the standard Twitter widget.

Requirements: a Posterous account, a Twitter account, some external hosting, basic knowledge of HTML.

Firstly, create a Twitter widget using Twitter's widget creator. I chose to create a Profile Widget


To make it easier to embed enable auto-width on the dimensions panel. 


Once you're done creating and customising your widget click Finish & Grab code. Copy the code from the box.


Now create a HTML file like the following, pasting the code you just copied under <!-- Paste twitter feed here -->, replacing the code between the <body> tags:

Now upload this to your web host. As this is just a static file, I've used Amazon S3. Cheap and reliable. Check the file works outside of Posterous before you continue. The final step is embedding the widget into your sidebar. Log into Posterous and then Edit Settings > Theme and customize my site. In Advanced add the following code into {block:ListSidebar} (changing http://my-web-host.com/twitter.html to the location of your file). :

You may have to adjust the size of the iframe to stop scrolling. If you want to add your twitter feed to individual post pages as well you need to add the above text to {block:ShowSidebar}

Preview and save your changes.

Sleep well at night knowing people are slightly less likely to miss your tweets.

Comments (9)

Feb 04, 2010
Andy Bryant said...
Exactly what I needed. Thanks for sharing this.
Mar 20, 2010
this is awesome , thanks for sharing. didn't think of it
Apr 04, 2010
Si Lumb said...
Excellent guide, well written, very helpful. Thank you
May 14, 2010
Cena Carioca said...
perfect.
May 16, 2010
Alan Butler said...
thanks for sharing this! cheers! :)
May 21, 2010
neat..thanks !
Jun 08, 2010
Scott Bratcher said...
Have you ever worked a similar method of getting adsense into a Posterous theme? I'm thinking it may work, but would fail where it would lack the content awareness required to show relevant ads. Is my logic sound?
Jun 22, 2010
robinhood10 said...
Wow!! Its fantastic site. Thank you for giving such useful information. Bangalore based web hosting company.
Jul 27, 2010
it excuses is that I have tried of many ways and I put http://fanultra.webs.com/twitter.htm to him and leaves to me is the page and not them twits, I hope you collaborate to me soon

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     twitter