/blog/articles/

Simple Social Media Sharing Links without Third Party Javascript

Recently I needed to implement social media sharing buttons into a project. We wanted to use custom icons and omit all the third party javascript. Luckily there are simple links you can use with some parameters for the big players like Twitter or Facebook.

Twitter Share Link

<a href="https://twitter.com/home?status=Your%20custom%20tweet%20with%20blanks.">Share on Twitter</a>

Twitter Share Link with WordPress Template Tags:

<a href="https://twitter.com/home?status=Check%20out%20this%20article%20by%20@_martinwolf:%20 

">Share on Twitter</a>

Facebook Share Link

<a href="https://www.facebook.com/sharer/sharer.php?u=http://mydomain.com/articletitle">Share on Facebook</a>

Facebook Share Link with WordPress Template Tags:

<a href="https://www.facebook.com/sharer/sharer.php?u=">Share on Facebook</a>

Google+ Share Link

<a href="https://plus.google.com/share?url=http://mydomain.com/articletitle">Share on Google+</a>

Google+ Share Link with WordPress Template Tags:

<a href="https://plus.google.com/share?url=">Share on Google+</a>

Share via Mail Link

<a href="mailto:?subject=Reading Recommendation&body=Check out this article: Article Title http://mydomain.com/articletitle.">Share via Mail</a>

Share via Mail Link with WordPress Template Tags:

<a href="mailto:?subject=Reading Recommendation&body=Check out this article:  

.">Share via Mail</a>
Martin Wolf

Hi, I’m Martin Wolf, a Freelance Frontend Web Developer from Germany.
I believe in hard work and sharing what I know.

Contact me

Interested in working with me? Fantastic! The best way to get in touch is by email (hello@martinwolf.org). I’m looking forward to hearing from you.