How to Add a WhatsApp Button to Your Website for Free (No Plugin Needed)
Adding a WhatsApp chat button to your website is one of the highest-impact, lowest-effort changes you can make. Visitors see the familiar green icon, tap it, and they're chatting with you instantly — no forms, no waiting, no friction.
The best part? You don't need a WordPress plugin, a Shopify app, or any paid tool. Just a few lines of HTML and a free WhatsApp link from wplink.app.
Why Add a WhatsApp Button to Your Website?
The data makes a strong case:
- Websites with WhatsApp buttons see up to 45% more customer inquiries compared to contact forms alone.
- Chat-initiated conversations convert 5x better than form submissions for service businesses.
- WhatsApp has over 2 billion monthly active users — your customers are already there.
- Average response time on WhatsApp: under 2 minutes. Email: 12+ hours.
A WhatsApp button isn't just a nice-to-have. For businesses in Latin America, Europe, Asia, and Africa, it's expected.
Step 1: Generate Your WhatsApp Link
Before adding any button, you need a working WhatsApp link. The easiest way:
- Go to wplink.app.
- Enter your phone number with country code.
- Optionally add a pre-filled message (e.g., "Hi, I visited your website and have a question").
- Click Generate.
- Copy the link.
This link is the foundation of your button — it's what happens when someone clicks it.
Step 2: Choose Your Button Style
Option A: Floating Button (Most Popular)
A floating button stays fixed in the corner of the screen as users scroll. It's visible on every page without being intrusive.
<!-- WhatsApp Floating Button -->
<a href="YOUR_WHATSAPP_LINK" target="_blank" rel="noopener noreferrer"
style="position:fixed;bottom:24px;right:24px;z-index:9999;
background:#25D366;width:60px;height:60px;border-radius:50%;
display:flex;align-items:center;justify-content:center;
box-shadow:0 4px 12px rgba(0,0,0,0.15);
transition:transform 0.3s ease;">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="white">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z"/>
<path d="M12 0C5.373 0 0 5.373 0 12c0 2.13.556 4.13 1.527 5.87L.06 23.71l5.994-1.573A11.94 11.94 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.82c-1.978 0-3.81-.588-5.347-1.593l-.384-.228-3.977 1.043 1.062-3.882-.25-.398A9.82 9.82 0 012.18 12c0-5.422 4.398-9.82 9.82-9.82 5.422 0 9.82 4.398 9.82 9.82 0 5.422-4.398 9.82-9.82 9.82z"/>
</svg>
</a>
Replace YOUR_WHATSAPP_LINK with the link you generated at wplink.app.
Option B: Inline CTA Button
Perfect for placing within page content — under product descriptions, on contact pages, or in hero sections:
<a href="YOUR_WHATSAPP_LINK" target="_blank" rel="noopener noreferrer"
style="display:inline-flex;align-items:center;gap:8px;
background:#25D366;color:white;padding:14px 28px;
border-radius:8px;text-decoration:none;font-weight:600;
font-size:16px;transition:background 0.3s ease;">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="white">
<path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z"/>
<path d="M12 0C5.373 0 0 5.373 0 12c0 2.13.556 4.13 1.527 5.87L.06 23.71l5.994-1.573A11.94 11.94 0 0012 24c6.627 0 12-5.373 12-12S18.627 0 12 0z"/>
</svg>
Chat With Us on WhatsApp
</a>
Option C: Text Link (Minimalist)
For blog posts, emails, or anywhere a simple link works:
<a href="YOUR_WHATSAPP_LINK" target="_blank" rel="noopener">
💬 Message us on WhatsApp
</a>
Step 3: Add It to Your Website Platform
WordPress (No Plugin)
- Go to Appearance → Theme Editor (or use the Customizer → Custom HTML widget).
- To add a floating button site-wide, paste the floating button code into your theme's
footer.phpbefore the closing</body>tag. - Alternatively, go to Appearance → Widgets, add a Custom HTML widget to your footer area, and paste the code.
Why skip the plugin? WhatsApp button plugins add JavaScript, CSS files, and database queries — all for something that's literally one HTML element. Your site loads faster without them.
Shopify
- Go to Online Store → Themes → Actions → Edit Code.
- Open
theme.liquid. - Paste the floating button code before
</body>. - Save.
Wix
- Open the Wix Editor.
- Click Add (+) → Embed Code → Custom Element or HTML iframe.
- Paste the button code.
- Position it where you want.
Squarespace
- Go to Settings → Advanced → Code Injection.
- Paste the floating button code in the Footer section.
- Save.
Plain HTML
Just paste the code directly into your HTML file. No setup needed.
Customization Guide
Change the Button Color
Replace #25D366 with any hex color. But consider keeping WhatsApp green — users recognize it instantly and trust it.
Change the Size
Modify width and height values. For mobile-friendly buttons, keep it at least 56px × 56px.
Change the Position
- Bottom-left: Change
right:24pxtoleft:24px - Top-right: Change
bottom:24pxtotop:24px
Add a Tooltip
Wrap the button in a container with a tooltip:
<div style="position:fixed;bottom:24px;right:24px;z-index:9999;">
<span style="position:absolute;bottom:70px;right:0;background:#333;color:white;
padding:8px 12px;border-radius:6px;font-size:14px;white-space:nowrap;">
Chat with us!
</span>
<!-- Your button code here -->
</div>
Add a Pulse Animation
Make the button gently pulse to attract attention:
<style>
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
</style>
Add animation: pulse 2s infinite; to your button's style.
Best Practices
Placement Strategy
- Floating button: Best for service businesses, e-commerce, and any site where chat availability matters.
- Inline buttons: Best on product pages, pricing pages, and contact pages.
- Both: Use a floating button site-wide plus inline CTAs on high-intent pages.
Mobile Optimization
- Make sure your button doesn't overlap with other fixed elements (cookie banners, chatbots).
- Test the tap target size — Apple recommends at least 44×44 points.
- On mobile, the link opens the WhatsApp app directly. On desktop, it opens WhatsApp Web.
Performance
The HTML/CSS approach loads instantly — zero JavaScript, zero external requests, zero impact on page speed. Compare that to plugins that add 50-200KB of assets.
Common Mistakes
- ❌ Using a plugin for a simple button. You don't need one.
- ❌ Hiding the button behind a menu. Make it visible at all times.
- ❌ Using the wrong number format. Always include the country code, no
+sign, no dashes. - ❌ Not testing on mobile. Always verify the link opens WhatsApp correctly on a real phone.
- ❌ Placing it over important content. Position the floating button so it doesn't block navigation or CTAs.
Frequently Asked Questions
Do I need WhatsApp Business for this?
No. Regular WhatsApp works fine. WhatsApp Business adds features like a business profile and auto-replies, but the link works with both.
Will this slow down my website?
Not at all. The pure HTML/CSS button adds virtually zero load time. It's lighter than a single image.
Can I track clicks on the WhatsApp button?
Yes. Add a Google Analytics event to the link with an onclick attribute, or use Google Tag Manager to track clicks on the WhatsApp URL pattern.
Does this work with WhatsApp Web?
Yes. On desktop, clicking the button opens WhatsApp Web (or the desktop app if installed).
Can I have different buttons for different departments?
Absolutely. Create separate links at wplink.app with different numbers and pre-filled messages (e.g., "Sales inquiry" vs. "Support request"), then place them on relevant pages.
Conclusion
A WhatsApp button on your website is free, takes 5 minutes to set up, requires no plugins, and can dramatically increase your customer inquiries. There's no reason not to have one.
👉 Generate your free WhatsApp link at wplink.app and add your button today.