jQuery Plugin For Custom Social Share Links - Shares

jQuery Plugin For Custom Social Share Links - Shares
File Size: 8.16 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Shares is a very small jQuery plugin for creating custom social links to share to a URL across several social media platforms: Facebook, Linkedin, Twitter and Google Plus.

How to use it:

1. Add both jQuery library and the jQuery Shares plugin's script to the webpage.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="dist/jquery.shares.js"></script>

2. Initialize the plugin and the Shares is ready for use.

$('a.share').shares();

3. Create the social share links as these.

<!-- Facebook -->
<a href="https://www.jqueryscript.net" class="share facebook">
  Facebook
</a>

<!-- Twitter -->
<a href="https://www.jqueryscript.net" 
   data-text="7000+ latest Free jQuery plugins with examples and tutorials for web &amp; mobile developers." 
   class="share twitter>
   Twitter
</a>

<!-- LinkedIn -->
<a href="https://www.jqueryscript.net" 
   data-text="7000+ latest Free jQuery plugins with examples and tutorials for web &amp; mobile developers." 
   class="share linkedin>
   LinkedIn
</a>

<!-- LinkedIn -->
<a href="https://www.jqueryscript.net" class="share google-plus">
  Google Plus
</a>

This awesome jQuery plugin is developed by gburgose. For more Advanced Usages, please check the demo page or visit the official website.