• Home
  • About Me
  • AI Tools
  • Twitter Trends
  • Age Calculator
  • Public Holidays
  • Fancy Fonts
  • Privacy Policy
  • Contact Me

iamrohit.in

My Public Notebook

Skip to content
Menu
  • Tools
    • AI Astrologer
    • Solar System
    • Printable Calendar
    • X Trends
    • Google Trends
    • Youtube Trends
    • Age Calculator
    • Birthday Card Maker
    • Wedding Anniversary Calculator
    • Public Holidays
    • English to Hindi Typing
    • Business Name Generator
    • Word Finder
    • Fancy Text Generator
    • IP Location Finder
    • Hours Calculator
    • Date Time Calculator
    • Emoji Copy Paste
  • jQuery Plugins
    • Accordion
    • Barcode
    • Calendar
    • Clock
    • Countdown
    • Character Count
    • ColorPicker
    • Data Grid
    • DatePicker
    • Date Time
    • EU Cookie Law
    • Fileuploader
    • Form Validation
    • Icon Picker
    • Image Slider
    • image Crop
    • Image Zoom
    • Inputmask
    • Loading
    • Mega Menu
    • Menu
    • Multiselect
    • Multi-Step Form
    • News Ticker
    • Notification
    • Photo Gallery
    • QR Code
    • TimePicker
    • Tooltip
  • HOSTING

Create your own social share buttons in JavaScript & HTML – sharer.js

by Rohit

Sharer.js is a very tiny js lib to create custom social share components on DOM elements for your website. No dependencies. All the parameters can be passed via HTML5 data attributes.



Sharer.js currently supports more than 20 social media sites.

  • Twitter
  • Facebook
  • Linkedin
  • Google Plus
  • Email
  • Whatsapp
  • Telegram
  • Viber
  • Pinterest
  • Tumblr
  • Hackernews
  • Reddit
  • VK.com
  • Buffer
  • Xing
  • Line
  • Instapaper
  • Pocket
  • Digg
  • StumbleUpon
  • Flipboard
  • Weibo
  • Renren
  • Myspace
  • Blogger
  • Baidu
  • Ok.ru

Libraries

Load the sharer.min.js minified library.




HTML

Add the required CSS class ‘sharer’ to your element and create a custom Facebook, twitter etc buttons.




Here are the list of data attribute you can use to customize your social share buttons.

  • data-width: width of popup
  • data-height: height of popup
  • data-title
  • data-url
  • data-via: for Twitter and Buffer
  • data-hashtags: for Twitter
  • data-to: for email
  • data-subject: for email
  • data-image: for Pinterest, Weibo, and VK
  • data-description: for Pinterest, Instapaper, Blogger, and Myspace
  • data-caption: for Tumblr and VK
  • data-tags: for Tumblr
  • data-picture: for Butter
  • data-appkey: for Weibo
  • data-ralateuid: for Weibo

See live demo and download source code.

DEMO | DOWNLOAD

This awesome plugin is developed by ellisonleao. Visit their official github repository for more information and follow for future updates.


Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit

Related

Posted in Jquery & JavascriptTagged jquery social share plugins

Published by Rohit

View all posts by Rohit

Post navigation

Prev Draw Dynamic Lines Between Two Lists – jQuery FieldsLinker
Next Lightweight Angular directive to upload files – ng-file-upload

Categories

  • AI Tools
  • Angular.js
  • Bootstrap
  • CakePHP
  • CSS & CSS3
  • Express
  • Hosting
  • Interview Question and Answer
  • Jquery & Javascript
  • Kali Linux
  • Make Money Online
  • MYSQL
  • NodeJs
  • Offers & Deals
  • Others
  • PHP
  • ReactJs
  • Security Tips
  • SEO
  • Tailwind CSS
  • Tips & Tricks
  • Ubuntu
  • Uncategorized
  • VueJs
  • WordPress
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

#1 Best Web Hosting 🚀

We Recommend Hostinger

Use Code: ASKROHIT20

Hostinger is among the top 3 hosting providers. This website is also hosted on Hostinger. Enjoy ultra-fast speed, 99.9% uptime, and beginner-friendly pricing.

🔥 Get 82% OFF Now
© Copyright 2026 – iamrohit.in
Allium Theme by TemplateLens ⋅ Powered by WordPress