| Mobile| RSS

Add "Tweet Me" Button to your Posts

| posted in , |


You can add tweet me button to your blog similar to what you can see in this post on the right side.
Tweet me button allows the user to share the post with their twitter followers.
Please backup your template before we start.


1.Sign in to your Blogger account and then goto Layout>Edit html and click on expand widgets.

2.Find <data:post.body/> by pressing Ctrl+F and then add the below code after it .

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


If you are using Read More hack then replace <data:post.body/> with the below code


</b:if><p><div style='float:right; margin-left:10px;'> <script type='text/javascript'> tweetmeme_url = &#39;<data:post.url/>&#39;; </script> <script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'> </script> </div><!-- DIGG --> <div style='float:right; margin-left:10px;'> <script type='text/javascript'> digg_url = &#39;<data:post.url/>&#39;; </script> <script src='http://digg.com/tools/diggthis.js' type='text/javascript'/> </div><data:post.body/></p><b:if cond='data:blog.pageType == &quot;item&quot;'>



3.Preview the template if everything is ok save the template.

The twitter icon will look as below
if you have any doubt or suggestion please do leave a comment.



Enjoy Your Blogging !!