Skip to content

Free tool

Add a free WhatsApp chat widget to your website

Pick one of five designs, brand the button and chat card, and personalize messages per page with {{page_url}} and {{page_title}}. Then paste one snippet on WordPress, Shopify, Wix or any site: no signup, no plugin.

  • Runs in your browser
  • Free, no signup
  • Updated
Configure on the left — the preview and script update live.

Configure WhatsApp chat button

The floating button every visitor sees.

Button background

😊 Emoji welcome. You can use {{page_url}} & {{page_title}} — filled with the page the visitor is on.

Position

Chat widget

The card that opens above the button — brand it like your own.

Brand color

😊 Emoji welcome — {{page_url}} & {{page_title}} work here too.

Open widget on mobile
Open widget by default
Re-open by default

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}}.

Format parameter values

Applies to the substituted {{page_title}} value — "red-shoes – your store" becomes "Red shoes – your store". URLs stay untouched.

Live preview

Widget design

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.

Configured in your browser — the script only runs on your site.

Keyboard shortcuts

  • Show these shortcuts?

Shortcuts work while the cursor is inside the tool.

About this tool

What is the WhatsApp Widget Generator?

The WhatsApp Widget Generator is a free tool that builds a floating WhatsApp chat button and chat widget for any website. Pick one of five designs, add your number, brand the chat card and personalise the greeting per page with {{page_url}} and {{page_title}}, then paste one short snippet on WordPress, Shopify, Wix or plain HTML. No signup, no plugin.

Price
Free
Signup
None
Your data
Stays in your browser
Updated

What you get

  • Five designs: Aurora, Classic chat, Midnight glass, Bubble, Bold
  • Floating WhatsApp button and a branded chat card
  • Per-page messages with {{page_url}} and {{page_title}}
  • Works on WordPress, Shopify, Wix, Webflow and any HTML site
  • One short snippet, sealed from your theme's CSS, CSP-safe
  • Free: no signup, no plugin, no message limits

Generators & builders · no account, nothing uploaded

How it works · three steps, no signup

How to use the WhatsApp Widget Generator

  1. Step 1: Pick a design and configure

    Choose from five designs, then set the number, colours, CTA texts, margins, radius and position — plus the brand header, on-screen message and open/re-open behaviour.

  2. Step 2: Personalize per URL

    Add rules so product pages ask about the product and pricing pages about plans — {{page_url}} and {{page_title}} fill in automatically.

  3. Step 3: Copy the embed code

    Paste the short snippet before your closing body tag. Your settings travel inside it as plain data; the widget loads from infiq.in and draws itself.

Install guides · 10 platforms

How to add a WhatsApp widget to your website

Generate your embed code above, then paste it once where your site keeps footer code: just before the closing </body> tag. Here is where that is on each platform. The widget then shows on every page.

Add a WhatsApp widget to WordPress

  1. In your WordPress dashboard, go to Plugins → Add New, search for “WPCode” (Insert Headers and Footers), then install and activate it.
  2. Open Code Snippets → Header & Footer and paste the embed code into the Footer box.
  3. Click Save Changes, then clear your caching plugin so the widget shows straight away.

Rather not add a plugin? Paste the code just before </body> in your theme's footer.php, ideally in a child theme so theme updates don't remove it.

Full WordPress guide

Add a WhatsApp chat button to a WooCommerce store

  1. WooCommerce runs on WordPress, so install it the same way: WPCode → Header & Footer → Footer.
  2. To ask about the product a shopper is viewing, add a URL rule with “/product/” as the source and a message that uses {{page_title}}.
  3. Save, clear the cache and open a product page to check the greeting.
Full WooCommerce guide

Add a WhatsApp widget to Shopify

  1. In Shopify admin, go to Online Store → Themes, open the ⋯ menu on your live theme and choose Edit code.
  2. Open layout/theme.liquid and paste the embed code on the line just above </body>.
  3. Click Save and preview your store: the widget appears on every page, including product and collection pages.

Shopify's checkout doesn't load theme code, so the widget stays out of the way there.

Full Shopify guide

Add a WhatsApp widget to a Wix site

  1. In your Wix dashboard, open Settings → Custom Code (under Advanced) and click + Add Custom Code.
  2. Paste the embed code, name it “WhatsApp widget”, choose All pages and place the code in Body - end.
  3. Click Apply, then publish your site.

Wix only runs custom code on premium sites with a connected domain.

Full Wix guide

Add a WhatsApp widget to Webflow

  1. Open Site settings → Custom code.
  2. Paste the embed code into Footer code (the box for code before the </body> tag) and save.
  3. Publish the site: custom code runs on the published site, not inside the Designer.

Site-wide custom code needs a paid Webflow site plan.

Full Webflow guide

Add a WhatsApp widget to Squarespace

  1. Go to Settings → Developer tools → Code injection (Settings → Advanced → Code Injection on older sites).
  2. Paste the embed code into the Footer field and save.
  3. Open your site in a new tab to check the widget.

Code injection isn't on every Squarespace plan; if you can't find it, check your plan.

Full Squarespace guide

Add a WhatsApp widget to Blogger

  1. In Blogger, open Layout and click Add a Gadget in a sidebar or footer section.
  2. Choose HTML/JavaScript, paste the embed code and leave the title empty.
  3. Save the gadget and the arrangement: the widget floats over every page, wherever the gadget sits.
Full Blogger guide

Add a WhatsApp widget with Google Tag Manager

  1. In your GTM container, create a tag of type Custom HTML and paste the embed code.
  2. Set the trigger to All Pages, or to a page-view trigger for just the pages you want.
  3. Preview to check it, then submit and publish the container.

GTM loads the widget after its own script, so it can appear a moment later than a direct install.

Full Google Tag Manager guide

Add a WhatsApp widget to a React or Next.js site

  1. In your root layout (Next.js: app/layout.tsx), render <div id="infiq-wa-widget"> with the “Powered by InfiQ” link from your embed code inside it.
  2. Load https://www.infiq.in/whatsapp-widget.js with next/script (strategy “lazyOnload”), or append a script tag in a useEffect.
  3. When the script loads, call window.infiqWhatsAppWidget({…}) with the settings object from your embed code.

If your site sends a Content-Security-Policy, allow https://www.infiq.in in script-src.

Full React / Next.js guide

Add a WhatsApp widget to an HTML site or any CMS

  1. Open the template every page shares: a footer include, a layout file or your CMS's “footer scripts” setting.
  2. Paste the embed code just before the closing </body> tag.
  3. Upload or deploy, then reload a page: the widget appears bottom-right (or bottom-left, if you chose it).
Full HTML & other sites guide

Five designs

Pick a WhatsApp widget design that fits your site

Every design takes your colours, name, logo and messages. Switch between them in the generator above: the preview is the real widget, so what you see is what visitors get.

  • Aurora

    Most websites. A modern messenger look in your brand colour, with a round button and a white label beside it.

  • Classic chat

    Stores and service businesses whose customers already live in WhatsApp: it looks like a chat, and the message box already holds what they'll send.

  • Midnight glass

    Dark or premium sites (fashion, tech, hospitality) where a white card would look out of place.

  • Bubble

    Clean, content-first sites and blogs that want the lightest touch: a small bubble instead of a full panel.

  • Bold

    Landing pages and campaigns where the chat is the main call to action and should feel unmistakably yours.

Compare

WhatsApp widget vs. a chat plugin vs. a click-to-chat link

Three ways to put WhatsApp on a website. The widget gives you a chat experience on any platform without a plugin; a plain link is simplest where a floating button would be too much.

The InfiQ WhatsApp widget compared with a platform chat plugin and a click-to-chat link
FeatureThis WhatsApp widgetA WordPress or Shopify chat pluginA click-to-chat link
Works onAny website: WordPress, Shopify, Wix, Webflow, custom HTMLThe one platform it was built forAnywhere you can place a link
SetupPaste one snippetInstall, then configure in its settingsMake a wa.me link, then add a button
Floating chat card with a greetingYes, in five designsUsuallyNo
Message per pageYes: {{page_url}}, {{page_title}} and URL rulesVariesOne link per message, by hand
Page-speed costAbout 14 KB, loaded after your pageVaries; some load extra librariesNone
Account, signup or upsellNoneOften a free tier with paid upgradesNone

Need just the link, for an email, a bio or an ad? Make one with the WhatsApp Link Generator or print it as a WhatsApp QR code.

Use cases

What businesses use a WhatsApp chat widget for

A specific greeting tells visitors what the chat is for, and gets more replies than a generic “How can we help?”. Some starting points:

  • WhatsApp widget for online stores

    Answer size, stock and delivery questions before the cart is abandoned. A URL rule on “/product/” names the product in the message.

    Greeting to try: “Questions about size, stock or delivery? Ask us here.”

  • WhatsApp widget for real estate

    Turn listing views into site-visit requests, with the property's page title in the first message.

    Greeting to try: “Want the floor plan or a site visit for this property?”

  • WhatsApp widget for education and coaching

    Parents and students ask about fees, batches and demo classes where they already talk to you.

    Greeting to try: “Ask us about fees, batch timings or a free demo class.”

  • WhatsApp widget for clinics and healthcare

    Patients book or reschedule without waiting on a phone line.

    Greeting to try: “Book or reschedule an appointment on WhatsApp.”

  • WhatsApp widget for travel and hospitality

    Travellers compare packages and dates in a chat instead of a long enquiry form.

    Greeting to try: “Planning a trip? Tell us your dates and we'll share options.”

  • WhatsApp widget for SaaS and B2B

    A pricing-page rule sends buyers straight to sales with the plan they were reading about.

    Greeting to try: “Comparing plans? Talk to our team on WhatsApp.”

  • WhatsApp widget for agencies and freelancers

    Portfolio visitors send a brief while they're still excited about your work, instead of filling in a form.

    Greeting to try: “Got a project in mind? Tell us about it here.”

  • WhatsApp widget for local services

    Salons, repair shops and restaurants take bookings and quote requests from the website.

    Greeting to try: “Book a slot or ask for a quote, we reply within minutes.”

Selling online? See how stores run orders, cart recovery and support on WhatsApp in WhatsApp for e-commerce, or connect your Shopify or WooCommerce store.

Best practices

How to get more chats from your WhatsApp widget

Most visitors who leave without buying were never against talking to you. They hit a question the page didn't answer, and finding a contact form felt like more effort than closing the tab. A floating WhatsApp chat widget removes that friction: it is on every page without taking layout space, it shows a real person is reachable, and it moves the conversation into the app where people already spend their day and where your reply will actually be seen.

  • Keep it clear of your money moments. Bottom-right is what visitors expect; switch to bottom-left when a cookie banner, a cart drawer or a sticky add-to-cart bar lives in that corner. The button must never cover a checkout or submit button on mobile.
  • Write a specific greeting. “Ask us about sizing or delivery” tells visitors what the chat is for and beats a generic “How can we help?”.
  • Let the message carry the context. Put {{page_title}} or {{page_url}} in the pre-filled message so every chat arrives saying which page it came from.
  • Auto-open sparingly. “Open by default” with the 24-hour re-open policy respects visitors who closed it once.
  • Answer fast. The subtitle promises a reply time; keep it honest. Once chats outgrow one phone, a shared inbox on the WhatsApp Business API lets your whole team reply from the same number.
  • Measure it. The widget sends an infiq_whatsapp_widget event to Google Tag Manager on every open and chat click, so you can count chats as conversions.

Troubleshooting

WhatsApp widget not showing? Quick fixes

The widget doesn't appear at all
Check that the whole embed code was pasted, container and script tag together, and that you published or saved the change. Then clear your caching plugin or CDN and reload.
It doesn't show in my site builder's editor
Wix, Webflow and Squarespace run custom code only on the published site, and only on plans that allow it. Check the live URL, not the editor.
My site has a Content-Security-Policy
Allow https://www.infiq.in in script-src. The widget needs nothing else: no inline scripts, no other hosts (plus img-src for your brand image, if you set one).
It shows only after the first click or scroll
A speed plugin is delaying JavaScript until interaction. Exclude whatsapp-widget.js from “delay JS” if you want the button visible straight away.
It's hidden behind a cookie banner or another chat bubble
Switch the position to bottom-left or raise the bottom margin in the generator, then paste the new code.
The chat opens the wrong number
Enter the full number with the country code and no + or leading 0 (for India, 91 followed by the 10-digit number).
It no longer opens by itself
With “Open by default” and the 24-hour re-open policy, a visitor who closed the card won't see it pop up again for a day. The button is still there.
Two widgets, or the wrong settings, show
The code was pasted twice; only the first copy draws. Remove the old one, for example an earlier install in a theme file.

FAQ

WhatsApp Widget Generator: questions and answers

How do I add a WhatsApp widget to my website?

Configure the widget above, copy the embed code and paste it just before the closing </body> tag of your site. On WordPress use a header-and-footer plugin such as WPCode, on Shopify edit theme.liquid, and on Wix, Webflow or Squarespace use the custom-code section in site settings; the install guides on this page walk through each. The script loads asynchronously and draws the widget in its own sealed layer (shadow DOM), so your theme's CSS can't distort it. The code runs no inline JavaScript, so it also works on sites with a strict Content-Security-Policy, as long as scripts from www.infiq.in are allowed.

Is the WhatsApp widget really free?

Yes. The generator, the widget and the hosting of its script are free, with no signup, no message limits and no expiry. The only condition is the small "Powered by InfiQ" link in the chat card's footer, which stays in the embed code.

Which widget designs can I choose from?

Five, all drawn by the same script: Aurora (a gradient header with the greeting on a floating card), Classic chat (a WhatsApp-style thread whose message box already holds the visitor's message), Midnight glass (dark frosted glass with a green glow), Bubble (a minimal speech bubble that grows out of the button) and Bold (your brand colour end to end with a big greeting). Each takes your colours, name, logo and messages, and the live preview is the real widget, so what you see is what your visitors get.

Do I need WhatsApp Business or the WhatsApp Business API?

No. The widget works with any WhatsApp number: a personal account, the WhatsApp Business app or a number on the WhatsApp Business API. It opens a chat with that number, and the conversation happens in WhatsApp. The API, through a provider such as InfiQ, matters once several people need to answer from one number, or you want chatbots and reporting.

Can I add a WhatsApp widget to WordPress without a plugin?

Yes. Paste the embed code just before </body> in your theme's footer.php, ideally in a child theme so updates don't remove it. If you'd rather not edit theme files, a header-and-footer code plugin such as WPCode does the same job. The widget itself isn't a plugin, so there is nothing to update.

Does the WhatsApp widget work on mobile?

Yes. On phones the chat card spans the screen and the button keeps clear of the system gesture bar. Tapping Start Chat opens the WhatsApp app with the message ready to send. Set "Open on mobile" to No to skip the card and go straight to WhatsApp.

How do the {{page_url}} and {{page_title}} parameters work?

Wherever they appear in your messages, the widget substitutes the visitor's current page at load time — so a message from your pricing page arrives as "Hi! I'm on Pricing (https://yoursite.in/pricing)" and your team instantly knows the context. The format options can clean the title (remove dashes/underscores, capitalize) before substitution.

What is URL personalization?

Rules that change the pre-filled and on-screen messages per page: a rule whose source URL matches the visitor's address (a simple contains-match, so "/pricing" covers every pricing URL) overrides the defaults. Product pages can ask about the product, the pricing page about plans — one script, page-aware messages.

Can I show the widget only on certain pages?

Yes: paste the embed code only into those pages or their template, or use a Google Tag Manager trigger for just those URLs. To change the message on certain pages rather than hide the widget, use URL rules.

Can I use more than one WhatsApp number?

One widget opens one number. To have several people answer, keep one number and connect it to the WhatsApp Business API with a shared team inbox, such as InfiQ's, which also routes chats to the right person. URL rules can still tell your team which page each chat came from.

Will the WhatsApp widget slow down my website or hurt SEO?

No. It is one vanilla-JavaScript file of about 14 KB compressed, loaded asynchronously from infiq.in with no frameworks, no trackers and no further requests (apart from your brand image, if you set one). It draws after your page has loaded and floats above it, so it causes no layout shift, and search engines see your page exactly as before.

Does the widget set cookies or need consent?

It sets no cookies, loads nothing from third parties and sends no visitor data to InfiQ. It keeps one item in the visitor's browser storage to remember that they closed the chat, for the re-open policy. Check your own consent policy, but this is the kind of functional preference consent banners usually allow.

How is a WhatsApp widget different from a click-to-chat link?

A click-to-chat (wa.me) link opens WhatsApp when clicked, wherever you place it. The widget is a floating button on every page with a chat card that greets visitors, shows your brand and reply time and fills in a page-aware message, so more visitors start a chat. Use both: the widget across your site, and links in emails, bios and ads.

Where do visitor messages actually go?

Straight to your WhatsApp number. The Start Chat button opens a wa.me link with your pre-filled message ready to send. There is no middle server: conversations happen in the WhatsApp app on the visitor's phone (or WhatsApp Web on desktop) and land in your WhatsApp Business app or API inbox.

What do the open and re-open settings do?

"Open widget by default" pops the chat card automatically shortly after the page loads. The re-open policy respects visitors who closed it: "After 24 hours" keeps it closed for a day after a manual close (remembered in their browser), while "Always" re-opens it on every visit. "Open on mobile: No" sends phone visitors straight into WhatsApp when they tap the button instead of showing the card.

Can I remove the Powered by InfiQ badge?

The free widget always shows a small "Powered by InfiQ" link in the footer of the chat card — that is the trade for an unlimited, signup-free tool, and it is shown honestly in the live preview. It is a plain link inside the embed code, styled as one muted line so it never competes with your branding or the Start Chat button.

Can I track widget clicks in Google Analytics?

Yes. Every open, close and chat click fires an "infiq:whatsapp-widget" event on the page and, when Google Tag Manager is installed, a dataLayer event named infiq_whatsapp_widget with infiq_widget_action set to open, close or chat. Use it as a GTM trigger to count WhatsApp chats as conversions. No visitor data is included.

Can my own buttons open the chat card?

Yes. Add the attribute data-infiq-wa-open to any button or link on your site and clicking it opens the chat card, which suits a "Talk to us" link in a menu or on a product page. Your own scripts can call infiqWhatsAppWidget.open(), .close() or .toggle().

Still have questions?

Book a demo

Meta Business Partner

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.

7-day free trial Enterprise-grade reliability Live in 2 hours Built for Indian businesses