wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Add Tweetmeme button to your post with shortcode

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add the Tweetmeme button to any location within your post.

snippet :  PHPcopy
function tweetmeme(){
  return '<div class="tweetmeme"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div>';
}
add_shortcode('tweetmeme', 'tweetmeme');
snippet :  SHORTCODEcopy
[Tweetmeme]

Did you like this post? If so please share it with your friends. Thanks!

jqsnipp.com | we just launched jquery snippets website