How to Add Social Share Buttons Without Plugin
Social media plugins can significantly slow down your website by loading excessive tracking scripts and external assets. The most efficient way to add share buttons is by using simple HTML links and CSS.
This tool generates lightweight code for social sharing. It is ideal for developers who want to keep their site fast. If you are building a site from scratch, you might also need our Responsive Navbar Generator or our QR Code Tool. For media heavy sites, check our Social Media Image Resizer.
Share Button Generator
Live Preview
Generated Code
Copy and paste this into your website template.
How It Works
Instead of using heavy JavaScript SDKs provided by Facebook or Twitter, this method uses “Share URLs”. These are special links that accept parameters (like your URL) and open a posting page.
The URL Structure
- Facebook:
https://www.facebook.com/sharer/sharer.php?u=[URL] - X (Twitter):
https://twitter.com/intent/tweet?text=[TEXT]&url=[URL] - WhatsApp:
https://wa.me/?text=[TEXT]%20[URL]
The Magic Script
The generated code includes a very small JavaScript function (window.open). This forces the share link to open in a small popup window rather than navigating the user away from your page. It automatically grabs the current page’s URL using window.location.href, so you can paste the exact same code on every page of your site.
Frequently Asked Questions
.bg-facebook, .bg-twitter, etc., classes in the generated CSS to match your brand colors if you prefer.“Quick Utility Calculator | QuickCalculators” at https://quickcalculators.in/ from QuickCalculators, QuickCalculators.in – Online Calculators & Tools.
(Source: https://quickcalculators.in/add-social-share-buttons/)
https://quickcalculators.in/add-countdown-timer-to-website/