Skip to content

Instantly share code, notes, and snippets.

@rickalee
Created April 11, 2014 14:56
Show Gist options
  • Save rickalee/10475557 to your computer and use it in GitHub Desktop.
Save rickalee/10475557 to your computer and use it in GitHub Desktop.
WordPress Share Buttons
<a class="share-on-link share-on-twitter" href="https://twitter.com/intent/tweet?text=<?php echo urlencode(the_title_attribute('echo=0')); ?>&url=<?php the_permalink();?>">Twitter</a>
<a class="share-on-link share-on-facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink();?>">Facebook</a>
<a class="share-on-link share-on-googleplus" href="https://plus.google.com/share?url=<?php the_permalink();?>">Google+</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment