HTML Custom sharing buttons for Facebook, Twitter and more.

Custom sharing links for five of the popular social networks.
Facebook, Twitter, LinkedIn, Pinterest and Google Plus.
<a href="http://www.facebook.com/sharer/sharer.php?u={URL-encoded-not-required}" onclick="return !window.open(this.href, 'Facebook', 'width=640,height=300')"  rel="nofollow" title="Share on Facebook"></a>
 
<a href="http://twitter.com/intent/tweet?url={URL-encoded}" target="_new" rel="nofollow" title="Share on Twitter" onclick="return !window.open(this.href, 'Twitter', 'width=640,height=500')"></a>
 
<a href="http://pinterest.com/pin/create/button/?url={URL-encoded}&media={URL-encoded}&description={URL-encoded}" onclick="return !window.open(this.href, 'Pinterest', 'width=640,height=500')" rel="nofollow" title="Share on Pinterest"></a>
 
<a href="http://www.linkedin.com/shareArticle?mini=true&url={URL-encoded}&title={URL-encoded}&summary={URL-encoded}&source={URL-encoded}" onclick="return !window.open(this.href, 'LinkedIn', 'width=640,height=500')" rel="nofollow" title="Share on LinkedIn"></a>
 
<a href="https://plus.google.com/share?url={URL-encoded}" onclick="return !window.open(this.href, 'GooglePlus', 'width=640,height=500')" rel="nofollow" title="Share on Google Plus"></a>
Posted by
Snippet Viewed 1636 times.

Share your HTML code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent html snippets

Most Viewed