Skip to content

Instantly share code, notes, and snippets.

Created April 11, 2014 14:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rickalee/10475557 to your computer and use it in GitHub Desktop.
WordPress Share Buttons
<a class="share-on-link share-on-twitter" href="<?php echo urlencode(the_title_attribute('echo=0')); ?>&url=<?php the_permalink();?>">Twitter</a>
<a class="share-on-link share-on-facebook" href="<?php the_permalink();?>">Facebook</a>
<a class="share-on-link share-on-googleplus" href="<?php the_permalink();?>">Google+</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment