Blogspot Tutorial: Add a Twitter Retweet Button in Posts

How to Add a Twitter Retweet Button in Blogger-Blogspot Posts
You can easily add retweet buttons on your Blogger-Blogspot blog. Such buttons allow blog readers to share content on Twitter with others. When people will tweet about your blog, you'll get free marketing and traffic for your blog.

Whoa! We Can Use 2 Buttons Here!


Yes, we can add 2 different type of buttons provided by different sites. twitthis isn't very popular but tweetMeme is really shining out there. Anyways, both buttons will do same thing so it depends on your choice.

Add twitThis Twitter Retweet Button


Add Tweetthis Button in Your Blogger Posts to Get Massive Traffic

To add twitthis Twitter button, follow the following steps:

1- Go to Design and then Edit HTML tab.

2- Check Expand Widget Templates.

3- Find this tiny piece of code:

<b:if cond='data:post.title'>

4- Add following code just before the previous line of code:

<div style='float:right; margin-left:14px;'>
<a expr:href='&quot;http://twitthis.com/twit?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title'><img alt='TweetThis Button' border='0' src='http://2.bp.blogspot.com/_wa6zL1GRiOs/SjeGq4EVC0I/AAAAAAAAC2g/3oGekPdIZDM/s1600/Twitter.gif'/></a>
</div>


5- Now, we have added our button just below the posts, so save the template and see the result.

Add tweetmeem Twitter Retweet Button


Add Tweetthis Button in Your Blogger Posts to Get Massive Traffic
Adding tweetmeme Twitter Retweet button is also very easy. Just follow all the steps of twitthis Twitter Retweet button but the code to add in step 4 will be this:

<div style='float:right; margin-left:14px;'>
<script type='text/javascript'>
tweetmeme_url = &#39;<data:post.url/>&#39;;
</script>
<script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/>
</div>

Wanna Add Some More Such Buttons?


I've also written tutorials to add StumbleUpon button, many social bookmarking buttons and Facebook Share button. Feel free to check them out!

3 comments:

  1. Both these codes work absolutely perfectly! I opted for the second one - just personal preference. Thank you so much for posting!!

    ReplyDelete
  2. Fantastic !!!!!! I was looking for this type of blog related to Twitter Retweets for long times. Thank you so much for this. :)

    ReplyDelete

Note: All comments will be moderated.