Create custom social sharing buttons without load any external java script.
In this blog article discuss how to create social sharing buttons without using any external java script code. Most of coders are using external java script it will increase burden on server. Let's start discuss how to do it without external java script code.
.
Use simple anchor tag for share buttons
Facebook
Twitter
Reddit
Stumbleupon
Linkdin
Google Plus
Pinterest
replace your_url with sharing url & your_title with title of post.
.
Use simple anchor tag for share buttons
<a href="http://www.facebook.com/sharer.php?u=your_url&t=your_title" title="Share on Facebook."></a>
<a href="http://twitter.com/home/?status=your_title - your_url" title="Tweet this!"></a>
<a href="http://www.reddit.com/submit?url=your_url>&title=your_title ?>" title="Vote on Reddit"></a>
Stumbleupon
<a href="http://www.stumbleupon.com/submit?url=your_url&title=your_title" title="Stumble it"></a>
Linkdin
<a href="http://www.linkedin.com/shareArticle?mini=true&title=your_title&url=your_url" title="Share on LinkedIn"></a>
Google Plus
<a href="https://plus.google.com/share?url=your_url" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"></a>
<a href="http://pinterest.com/pin/create/button/?url=your_url&media=your_thumbnail_url"></a>
replace your_url with sharing url & your_title with title of post.
0 comments :
Post a Comment