Add a WhatsApp Chat Button to Shopify (3 Ways)
Add a WhatsApp chat button to your Shopify store three ways: a free wa.me link, a theme code snippet or an app widget. Steps, code and a comparison.

Direct answer
To add a WhatsApp chat button to Shopify for free, make a wa.me link in our WhatsApp link generator, copy the button code, and paste it just before </body> in your theme’s theme.liquid file. If you also want to capture the shopper’s number with consent, use an app widget instead.
A note on who wrote this: TopEdge AI sells one of the app options below. The first two methods are free and need nothing from us.
Before you start: the wa.me link
Every WhatsApp button is a link underneath.
WhatsApp’s click to chat help page gives the format: https://wa.me/ followed by your full number in international format, with no plus sign, zeroes, brackets or dashes.
Add ?text= and a URL-encoded message to pre-fill the chat. An Indian number looks like this:
https://wa.me/919876543210?text=Hi%21%20I%20have%20a%20question%20about%20my%20order.
The free link generator builds and encodes it, and gives you a QR code and the button code too.
Method 1: a free link in your menu or pages
The fastest option, and it needs no code.
- Make your link in the WhatsApp link generator and copy it.
- In Shopify admin, open your menus (Content, then Menus, or Online Store, then Navigation in older admins), open your main or footer menu, and add an item called “Chat on WhatsApp” with your link as the destination.
- For product pages, if your theme’s product template has a text or button block, add the link there, near Add to cart.
Use the same link in your Instagram bio and order emails. Our WhatsApp opt-in guide covers what you may send to people who message you this way.
Method 2: a floating chat button in theme code
This gives you the green round button in the corner of every page, still free.
- Enter your number and message in the link generator and click Copy code under “Add a WhatsApp chat button to your Shopify store”.
- In Shopify admin, go to Online Store, then Themes.
- Click the three dots next to your live theme and choose Edit code.
- Open
theme.liquidand paste the code just before the closing</body>tag. - Save, then open your store on a phone and tap the button to test it.
The generator’s code is a styled link with an inline WhatsApp icon. Stripped down, it is this:
<a href="https://wa.me/919876543210?text=Hi" target="_blank" rel="noopener"
aria-label="Chat with us on WhatsApp"
style="position:fixed;right:20px;bottom:20px;z-index:9999">Chat on WhatsApp</a>
Duplicate your theme before editing so you can roll back, and paste the code again if you switch themes.
It loads no script, so it adds none of the blocking app code Shopify’s performance guidance tells you to defer. The same snippet works on any website whose layout file you can edit.
Method 3: an app widget
An app installs the button without code. Free chat-button apps exist on the Shopify App Store, and many WhatsApp marketing apps include a widget.
The TopEdge AI chat widget is a floating chat button that can capture the shopper’s phone number before it opens WhatsApp, and saves that number with a consent timestamp to your subscriber list.
You choose when it shows (delay, exit intent, scroll, add to cart) and on which pages. It is on every plan, including Launch, with one live widget per store.
The honest trade-off: it is not free. TopEdge AI starts at ₹1,999 a month plus GST on our site, or $19 a month on the Shopify App Store, with a 14-day trial capped at 20 orders and 200 sends.
It pays only if you will message the numbers you capture. If you just want people to reach you, Method 2 does the job.
The three methods compared
| Line | Free link | Theme code button | TopEdge AI widget |
|---|---|---|---|
| Cost | Free | Free | From ₹1,999 a month plus GST, 14-day trial |
| Code needed | None | Paste into theme.liquid | None, installed with the app |
| Floating button on every page | No, a menu or page link | Yes | Yes |
| Loads a script | No | No | Yes |
| Captures the number with consent | No | No | Yes, with a timestamp |
| Rules for when it shows | No | No, always on | Delay, exit intent, scroll, add to cart, page rules |
| Survives a theme change | Yes | No, paste again | Yes |
| Best for | Bio links, emails, packaging | Any store that wants a chat button today | Stores that will message the numbers they collect |
Where the chats land
On the WhatsApp Business app, chats arrive on one phone. On a WhatsApp Business Platform number, as with TopEdge AI, they land in a shared inbox with the Shopify order beside each chat.
Replies are service messages, and from 1 October 2026 the first 1,000 a month per number are free under Meta’s India pricing. Comparing apps that bundle a widget?
See the best WhatsApp apps for Shopify.
Frequently asked questions
How do I add a WhatsApp button to my Shopify store for free?
Make a wa.me link with our free WhatsApp link generator, copy the button code it gives you, and paste it just before the closing </body> tag in your theme.liquid file. Save, and a green chat button sits in the bottom-right corner of every page. No app and no monthly fee.
Can I use the same WhatsApp button on a website that is not on Shopify?
Yes. The button is a plain HTML link with an inline icon, so it works on any website whose template you can edit. Paste it before the closing </body> tag of your site’s main layout file.
Will a WhatsApp chat button slow down my Shopify store?
The code button will not: it loads no script and no external file. An app widget does load a script, which is what lets it capture a number or run triggers. Shopify’s theme performance guidance advises finding and deferring app scripts that block the page, so check your speed after installing any widget.
Does the WhatsApp chat button work on desktop?
Yes. WhatsApp’s help page states that click to chat works on both your phone and WhatsApp Web. On a computer the link opens WhatsApp Web or the desktop app, with your pre-filled message in the chat box.
Where do chats from the button arrive?
On whichever number the link points to. If that number is on the WhatsApp Business app, chats arrive on that phone. If it is connected to a WhatsApp Business Platform tool such as TopEdge AI, they land in a shared inbox where several people can reply, with the Shopify order shown beside the chat.
Sources: WhatsApp’s click to chat help page, read 15 November 2026; Shopify’s theme performance best practices; Meta’s pricing documentation, effective 1 October 2026. TopEdge AI prices from our pricing page.
Share this article



