How to add a floating WhatsApp button
- Type your WhatsApp number with the country code, for example
+44 7700 900123. Spaces and dashes are fine. - Write the message that should appear in the visitor's chat box, such as "Hi! I'd like to know more about your products."
- Pick the colour, size, corner, label text and animation. The preview shows exactly what visitors will see.
- Open Get code, copy it, and paste it just before
</body>in your HTML, theme or site builder.
What the code does
It adds a round WhatsApp button fixed to the corner of the screen. Tapping it opens https://wa.me/your-number?text=your-message, which starts a chat in the WhatsApp app on phones or WhatsApp Web on computers, with your message already typed. The visitor doesn't need to save your number first.
The code is plain HTML and JavaScript with no external files, no jQuery and no cookies. It sits in its own Shadow DOM, so it won't pick up your site's CSS or break your layout, and it respects visitors who prefer reduced motion.
Where to paste it
- Plain HTML site: before
</body>on each page, or in a shared footer include. - WordPress: the free WPCode plugin's Footer box, or your theme's footer.php.
- Shopify: layout/theme.liquid, just above
</body>. - Wix, Squarespace, Webflow: the custom code or code injection area for the site footer.
Want Instagram or Messenger too?
Add more apps in the Channels tab and the button turns into a small menu, or start from the multi-app chat widget.
Questions people ask
How do I put a WhatsApp button on my website?
Enter your number here, copy the generated code and paste it before </body> on your site. The button appears in the corner of every page that has the code.
Does it work with WhatsApp Business?
Yes. Use the number registered to your WhatsApp Business app; the link format is the same.
Why use a country code?
wa.me links need the full international number without the leading zero, so WhatsApp knows which country the number is in. 07700 900123 in the UK becomes 447700900123.
Can I change the button colour from green?
Yes. Pick any colour in the Design tab. Green is the most recognisable for WhatsApp, though.