Skip to content

Instantly share code, notes, and snippets.

@rossharper
Created March 19, 2012 23:15
Show Gist options
  • Save rossharper/2128334 to your computer and use it in GitHub Desktop.
Save rossharper/2128334 to your computer and use it in GitHub Desktop.
Twitter, Facebook, and Google+ share buttons for Wordpress
<div class="twitterbutton">
<a href="http://twitter.com/share"
class="twitter-share-button"
data-url="<?php the_permalink() ?>"
data-text="<?php the_title(); ?>"
data-count="none"
data-via="rossharper">
</a><!--<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>-->
</div>
<div class="facebookbutton">
<a name="fb_share"
type="button"
share_url="<?php the_permalink() ?>"
href="http://www.facebook.com/sharer.php">
</a><!--<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>-->
</div>
<div class="googleplusonebutton">
<g:plusone size="medium" count="false" href="<?php the_permalink(); ?>"></g:plusone>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment