Adding Twitter/Retweet button to your Blogger posts

The Retweet button allows your visitors to retweet the contents of your blog on their twitter account.



Here are the simple steps to add this button on your every Blogger post:
  • Login to your Blogger account and go to Dashboard. 
  • Go to Layout > Edit HTML
  • Click on Expand Widget Templates 
  • Search for "<b:loop values='data:posts' var='post'>" within the template code by pressing Ctrl + F. 
  • Paste the following code after "<b:loop values='data:posts' var='post'>" and just above "<b:include data='post' name='post'/>":
<div style='float:right; margin-left: 10px;'>
<script type='text/javascript'>
tweetmeme_url = '<data:post.url/>'
</script>
<script src='http://tweetmeme.com/i/scripts/button.js'
type='text/javascript'/>
</div>
  • Save your template and you are done!

Comments

Popular posts from this blog

How to resolve 'res://ieframe.dll/acr_error.htm#' error (Internet Explorer stopped working while viewing a website)

htaccess: Redirecting multiple domains to the main domain

MailChimp API V2.0 SSL error solution