Free tool· Generators & builders
Add a WhatsApp chat widget to your Shopify store
Skip the app install and the monthly fee. Design the widget below, paste one snippet into your theme, and every page of your store gets a WhatsApp button.
- Runs in your browser
- Free, no signup
- Updated
Configure WhatsApp chat button
The floating button every visitor sees.
😊 Emoji welcome. You can use {{page_url}} & {{page_title}} — filled with the page the visitor is on.
Chat widget
The card that opens above the button — brand it like your own.
😊 Emoji welcome — {{page_url}} & {{page_title}} work here too.
After a visitor closes it, when may it auto-open again?
URL personalization
Personalize the messages based on your website's URL — a rule matches when its source URL appears in the visitor's address. Parameters: {{page_url}}, {{page_title}}.
Applies to the substituted {{page_title}} value — "red-shoes – your store" becomes "Red shoes – your store". URLs stay untouched.
Live preview
Gradient header with the greeting on a floating card. Click the button in the preview to close and reopen it.
{{page_title}} previews as "Red shoes – Your Store". On your site the real page title and URL are used — pick a rule above to preview its personalization.
Your embed script
<!-- Enter your WhatsApp number to generate the script -->
Paste it just before </body>. The widget loads async from infiq.in, runs no inline code and draws itself in its own sealed layer, so your theme's CSS can't break it. Works on any site: Shopify, WordPress, Wix, custom. Keep the "Powered by InfiQ" link inside — it's the small credit in the chat card's footer.
Quick answer
How do I add a WhatsApp widget to Shopify?
To add a WhatsApp widget to Shopify without an app, build it in the generator above and copy the embed code. Then go to Online Store → Themes → ⋯ → Edit code, open layout/theme.liquid and paste the code just above </body>. Save, and the widget appears across your store.
- Price
- Free
- Plugin or app
- None
- Setup time
- About 5 minutes
- You need
- Any Shopify plan
Step by step · 5 steps
Step by step: the WhatsApp widget on Shopify
Step 1: Build and copy your widget
In the generator on this page, enter your WhatsApp number with the country code, pick one of the five designs, set your colours and greeting, then click Copy script.
Step 2: Open your theme code
In Shopify admin, go to Online Store → Themes. On your current theme, click the ⋯ button and choose Edit code.
Step 3: Paste into theme.liquid
Under Layout, open theme.liquid, scroll to the bottom and paste the embed code on the line just above </body>.
Step 4: Save and preview
Click Save and open your store in a new tab: the widget shows on the home, collection, product and cart pages.
Step 5: Want a safety net? Duplicate first
Duplicate the theme (⋯ → Duplicate), add the code to the copy, preview it, then publish. You can switch back in one click.
Shopify tips
Get more from the WhatsApp widget on Shopify
Product-aware messages
Add a URL rule with /products/ as the source and a message like “Hi! Is {{page_title}} available in my size?” so every chat names the product.
Switching or updating themes
Code in theme.liquid belongs to that theme. If you move to a new theme or a new version of yours, paste the snippet into it before publishing.
Checkout stays clean
Shopify's checkout doesn't load theme code, so the widget never sits over the payment step.
Cart drawers and other chat apps
If a cart button or another chat app already sits bottom-right, move the widget to the left or raise its bottom margin.
Not sure which look to pick? Compare the five widget designs, or automate orders and replies with the Shopify WhatsApp integration.
FAQ
WhatsApp widget for Shopify: questions and answers
Do I need a Shopify app for a WhatsApp chat button?
No. Apps add a monthly fee and often more scripts than you need. The widget is one snippet in theme.liquid, free, with no app permissions to grant.
Is it safe to edit theme.liquid?
Yes. Pasting the code just above </body> doesn't change your layout. Duplicate the theme first if you want an easy way back.
Will the widget show on Shopify checkout?
No. Checkout doesn't load theme code, so the widget appears on your storefront pages only.
Can I send order and shipping updates on WhatsApp?
The widget starts conversations with shoppers. Automatic order, shipping, COD and cart-recovery messages need the WhatsApp Business API, which InfiQ's Shopify integration sets up.
Will it slow down my Shopify store?
No. It is one script of about 14 KB that loads after your page and adds no further requests, lighter than most chat apps.
Still have questions?
Book a demoOther platforms
Add the WhatsApp widget to another site
Put a team behind the widget.
InfiQ turns every widget conversation into a managed lead — shared team inbox, chatbots, broadcasts and analytics on the official WhatsApp Business API. 7-day free trial, no card required.
