Add Social Share Buttons into Thesis


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function social_share_buttons() {
  2.  
  3. ?>
  4. <div class="share-buttons">
  5. <ul>
  6. <li class="email-share"><a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a></li>
  7. <li class="facebook-share"><a name="fb_share"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li>
  8. <li class="linkedin-share"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></li>
  9. <li class="twitter-share"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li>
  10. </ul>
  11. </div>
  12. <div class="clear_b" style="line-height:0;">&nbsp;</div>
  13. <?php
  14. }
  15.  
  16. add_action('thesis_hook_after_headline', 'social_share_buttons');

URL: http://richerimage.co.uk

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.