jQuery Custom Social Share Links - Download jQuery Plugin For Custom Social Share Links - Shares

Download jQuery Plugin For Custom Social Share Links – Shares

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Custom Social Share Links – Shares, hope it will help you in programming stack.

jQuery Custom Social Share Links - Download jQuery Plugin For Custom Social Share Links - Shares
File Size: 8.16 KB
Views Total: 2101
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.

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

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

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

3. Create the social share links as these.

01 <!-- Facebook -->
02 <a href="https://www.jqueryscript.net" class="share facebook">
03   Facebook
04 </a>
05  
06 <!-- Twitter -->
08    data-text="7000+ latest Free jQuery plugins with examples and tutorials for web &amp; mobile developers."
09    class="share <a href="https://www.jqueryscript.net/tags.php?/twitter/">twitter</a>>
10    Twitter
11 </a>
12  
13 <!-- LinkedIn -->
15    data-text="7000+ latest Free jQuery plugins with examples and tutorials for web &amp; mobile developers."
16    class="share linkedin>
17    LinkedIn
18 </a>
19  
20 <!-- LinkedIn -->
21 <a href="https://www.jqueryscript.net" class="share google-plus">
22   Google Plus
23 </a>

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

source : jqueryscript.net