Saturday, December 31, 2011

Add Tweetmeme and Facebook Share button on blogspot

Leave a Comment
A step by step tutorial, learn how to insert the retweet and facebook share button on blogspot
1. Copy this code:


b:if cond='data:blog.pageType == "item"'>
      <div style='float:right;padding:4px;'>
      <script type='text/javascript'>
        tweetmeme_url = '<data:post.url/>';
        tweetmeme_source='your_twitter_username';
     </script>
     <script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/><br />
     <a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='box_count'/>
    <script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript' />
    </div>
    </b:if>


2. Go to your blogspot account
3. Proceed to EDIT HTML
4. Click EXPAND WIDGET TEMPLATES
5. Insert the code that you copied after this:

<b:loop values='data:posts' var='post'>
     
6. Then click SAVE TEMPLATE.

done!


post by: Pinoyphp

0 comments:

Post a Comment