Simple Social Share Buttons without Annoying Javascript Code

Date: 02/27/2016, Author: Lostwake, Category: PHP Quick Reference

I dont know why this was so hard to find but I finally found a post that explains how to build some simple social share buttons without obnoxious javascript or markup code and buttons that need to be re-styled.

You can see the product of this post in the top-right corner of this site.

I found the original post here: https://jonsuh.com/blog/social-share-links/

Here is the code for each social network.

Facebook

a href="https://www.facebook.com/sharer/sharer.php       
?u=https%3A%2F%2Fjonsuh.com%2F"
target="_blank">Share on Facebook

Google+

a href="https://plus.google.com/share       
?url=https%3A%2F%2Fjonsuh.com%2F"
target="_blank">Share on Google+

LinkedIn

a href="https://www.linkedin.com/shareArticle       
?mini=true
&url=https%3A%2F%2Fjonsuh.com%2F
&title=Jonathan%20Suh
&source=https%3A%2F%2Fjonsuh.com%2F
&summary=Short%20summary
target="_blank">Share on LinkedIn

Pinterest

a href="https://www.pinterest.com/pin/create/button/       
?url=https%3A%2F%2Fjonsuh.com%2F
&media=https%3A%2F%2Fjonsuh.com%2Ficon.png
&description=Short%20description
&hashtags=web,development"
target="_blank">Share on Pinterest

Reddit

a href="http://www.reddit.com/submit/       
?url=https%3A%2F%2Fjonsuh.com%2F"
target="_blank">Share on Reddit

Twitter

a href="https://twitter.com/intent/tweet/       
?text=Visit%20my%20website
&url=https%3A%2F%2Fjonsuh.com%2F
&via=jonsuh
&hashtags=web,development"
target="_blank">Share on Twitter

Comments: