Add Tweet It or ReTweet button to your blog posts

August 24, 2009

Twitter's growing popularity as a syndication tool is known to all.So you too can use it effectively for your blog.For this add a Tweet It or Retweet button/widget like I have added to my posts.
How would this help your blog?
Every time someone visits your posts and likes it,he can directly tweet it (share it in twitter),without leaving your blog.

So lets start adding this to your blog:
1.Download a copy of your template (as backup)
2.Click on Layout > Edit html >Expand Widget Templates
3.Now copy [Ctrl+C]and search [Ctrl+F] for below line of code in your template:


<div class='post-header-line-1'/>


4.Then add any one the below code just after this line:



code for above button:

<script type="text/javascript">
tweetmeme_url = '<data:post.url/>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>


or use this,


<script type="text/javascript">
tweetmeme_style = 'compact';
tweetmeme_url = '<data:post.url/>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>


5.Now save the template,that's it.

Also add Digg submit button to your blog.

0 comments:

Post a Comment