RAQ: Adding a Twitter Badge on WordPress.com

This wasn’t so much a question as it was an expression of dismay from a Twitterbud I met at the Ragan/SAS conference last week. Dave tweeted thusly:

The only significant disadvantage of hosting a blog on WordPress.com is that javascript-based widgets that you can easily insert in Blogger or Typepad don’t work. The Automattic guys only allow HTML, not java, in widgets because they don’t want to take the risk of malicious code being used to hack their 4.4 million-blog fortress.

So when Dave lamented this feature, I Tweeted back that he could work around it as I had in my sidebar widget.

Then I took a look at my sidebar and realized that I had just a plain old text link that said:

Follow Lee Aase on Twitter

And I resolved to fix it so Dave and other SMUGgles could do likewise, and have something more like this, that people can click and go to my Twitter profile:

Follow Lee Aase on Twitter

So how do you do it?

Go to your WordPress.com blog’s dashboard. Choose “Design” and then “Widgets”

Then, from the column of available widgets on the left, click “Add” next to the Text widget:

When the widget is added to the bottom of the right-hand column, click the Edit link:

And then paste the following text into the body of the widget (substituting your name and your Twitter profile URL for mine, of course):

<a href=”http://twitter.com/LeeAase“><img src=”http://assets1.twitter.com/images/twitter_logo_s.png” alt=”Follow Lee Aase on Twitter” /></a>

Then click the “Change” button

And “Save Changes”…

And when you go to the front page of your blog, you should see the sidebar look something like this (I combined Technorati and Twitter into one widget):

Updated 12/22/08: In response to a comment below, go here to see how you can have your latest Tweets show up in your sidebar.

This entry was posted in Chancellor RAQs, Tools and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

8 Comments

  1. Dave
    Posted October 25, 2008 at 10:47 pm | Permalink

    Thanks very much, Lee. That’s why you’re the Chancellor.

  2. Posted October 27, 2008 at 2:17 pm | Permalink

    Thanks for the tip i need twitter on my blog, now you show me the right way, thank you:)

  3. Posted October 30, 2008 at 2:45 pm | Permalink

    Hi Lee – I followed your instructions and the click through works; however, the Twitter symbol is not showing up on my blog. (The same thing happened with one of my RSS Feed symbols). Any idea why that might be happening? My blog is at http://infovest.wordpress.com/
    A

  4. Posted November 1, 2008 at 11:30 pm | Permalink

    thanks a lot

  5. Posted November 2, 2008 at 9:22 pm | Permalink

    Without seeing exactly what you have in the widget, it’s hard to tell, but it seems you have something amiss in the syntax of the link to the Twitter image. I posted exactly the code I used, so you might see if anything got mixed up in your copy/paste.

  6. budgallant
    Posted December 22, 2008 at 4:31 am | Permalink

    that’s interesting, but definitely not at alternative to actually displaying the twitter updates…. what is up with wordpress? do they have a bias against twitter?

  7. Posted December 22, 2008 at 9:07 pm | Permalink

    It’s a problem with javascripts. For security reasons, WordPress.com doesn’t allow scripts to be embedded in widgets. You have to be on your own host to use these badges. But I have a way around it that I will explain in a new post.

  8. Posted December 28, 2008 at 5:54 pm | Permalink

    Excellent. I got there in the end after pasting the code into notepad.
    Cheers.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Contact the Chancellor

    Lee Aase

    You can reach me by using the contact form on the About Me page.

  • Subscribe to SMUG

    Add to My AOL

    Subscribe in Bloglines

  • Get New SMUG Posts by Email

    Enter your email address:

    Delivered by FeedBurner

  • Categories

  • Archives

  • Featured in the SMUG Bookstore

    <