Simple and Clean Social Share Plugin with jQuery - sharebox

File Size: 20 KB
Views Total: 6126
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simple and Clean Social Share Plugin with jQuery - sharebox

Sharebox is a simple jQuery plugin for creating a clean social share box on your web page that contains share buttons to popular social networking sites.

Social networking websites included:

  • Digg
  • Facebook
  • Google Plus
  • Pinterest
  • Reddit
  • StumbleUpon
  • Tumblr
  • Twitter
  • and Print.

How to use it:

1. Include the jQuery Sharebox's stylesheet on your web page.

<link href="jquery.sharebox.css" rel="stylesheet" type="text/css">

2. Create a container for the social share box.

<div class="demo"></div>

3. Include the latest version of jQuery library and jQuery sharebox at the bottom of your page.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.sharebox.js"></script>

4. Call the plugin with default settings.

$('.demo').sharebox();

5. Options available

$('.demo').sharebox({

  // custom the url of your page.
  url      : document.location.href, 

  // custom the title of your page.
  title    : $(document).attr("title"), 

  // which social media sites should be displayed.
  services : "facebook twitter google+" 
  
});

Change log:

2017-03-29

  • added Pocket support.

2017-03-19

  • small changes

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