Work at Home Life

Virtual Assistants, Joining Forces, and Reinventing Work At Home

Add That Nifty ReTweet Button on a Blog Post March 8, 2010

Filed under: Web and Blog Site Tips — Amber Whitener - Virtual IT Assistant @ 3:06 pm
Tags: , , offers you your own free space to keep your small business blog until it is time for you to have your own self-hosted WordPress site setup. I’d like to share some tips on making this work for you, even if you aren’t the most tech savvy blogger out there.

Sometimes to add a little “POP!”, you have to learn a CSS trick or two.

1. Make sure you are in the “HTML” view of your post. (See ScreenShot)

Remember you must be in the HTML view to add this code or else it will not work!

2. This is the code to edit and add into every single post that you want to be retweetable:

<div style="float: right; margin-right: 20px;"><a href="" target="_blank"><img src="" alt="Tweet: POST TITLE" width="51" height="61" /></a></div>
  • Where is says URL: make sure you put in the full address of your post, not just the address of your homepage. When people tweet about a specific post, you want to make sure you help them look credible and send their interested friends or coworkers to the right place! Do not add any extra spaces or characters to the code, this could cause it to not function properly or at all.
  • Where it says TWITTERID: you can type in your own twitter username there. The ID you type in there will show us as who you are “RT”ing.
  • For all alt tags, all you need to type in place of POST TITLE is the title of your post. When visitors hover over your retweet image, they will see: Tweet: My Newest Blog Post.
  • You can past these at the top or bottom or in the middle of any post. It’s best to wait till you are finished and ready to publish the post before dealing with adding this button. (Trust me.) 🙂
  • You can make this image show up on the right side or left side of your post by changing the “float”. As you can see, I usually make my buttons float right, but it’s a personal preference. If you want it to “float” left, simply change the code: <div style=”float: right …to… <div style=”float: left …etc.

If you’d like to add a little something extra to track your clicks, you can even setup an account on and add the API in this code to track your blogpost being tweeted with a URL shortener.

<div style="float: right; margin-right: 20px;"><a href="" target="_blank"> <img src="" alt="POST TITLE" width="51" height="61" /></a></div>

This code probably works with many other url shorteners with APIs. If you have another type and test this, please stop by and let us know if it worked!

If it looks confusing, don’t worry, this is why there are plugins for self-hosted WordPress to automatically write this code for you. However, while your blog is still new, it’s ok to add this code to your favorite posts to make sure they are easily sharable.

Tweet: Add That Nifty ReTweet Button on a Blog Post

Voila! You’ll get your fancy retweet button! ->


%d bloggers like this: