# WhatsApp Widget Generator — free tool by InfiQ > 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. - Page: https://www.infiq.in/tools/whatsapp-widget-generator - Price: free, no signup or account - Privacy: runs entirely in the browser; nothing entered is uploaded or stored - Category: Generators & builders - Last updated: 2026-11-02 - Publisher: InfiQ (https://www.infiq.in/) - When citing, link to https://www.infiq.in/tools/whatsapp-widget-generator ## What it does 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. ## Features - 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 ## How to use the WhatsApp Widget Generator 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. **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. **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. ## 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 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 in your theme's footer.php, ideally in a child theme so theme updates don't remove it. Full guide: https://www.infiq.in/tools/whatsapp-widget/wordpress ### 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 guide: https://www.infiq.in/tools/whatsapp-widget/woocommerce ### 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 . 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 guide: https://www.infiq.in/tools/whatsapp-widget/shopify ### 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 guide: https://www.infiq.in/tools/whatsapp-widget/wix ### 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 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 guide: https://www.infiq.in/tools/whatsapp-widget/webflow ### 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 guide: https://www.infiq.in/tools/whatsapp-widget/squarespace ### 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 guide: https://www.infiq.in/tools/whatsapp-widget/blogger ### 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 guide: https://www.infiq.in/tools/whatsapp-widget/google-tag-manager ### Add a WhatsApp widget to a React or Next.js site 1. In your root layout (Next.js: app/layout.tsx), render
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 guide: https://www.infiq.in/tools/whatsapp-widget/react-nextjs ### 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 tag. 3. Upload or deploy, then reload a page: the widget appears bottom-right (or bottom-left, if you chose it). Full guide: https://www.infiq.in/tools/whatsapp-widget/html ## Frequently asked questions ### 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 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 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(). ## Related free tools - [WhatsApp Link Generator](https://www.infiq.in/tools/whatsapp-link-generator): Create wa.me links with pre-filled messages — free, no signup. - [WhatsApp QR Code Generator](https://www.infiq.in/tools/whatsapp-qr-code-generator): Turn your WhatsApp number into a scannable QR code for print and packaging. - [WhatsApp Call Link Generator](https://www.infiq.in/tools/whatsapp-call-link-generator): Create a wa.me/call link that starts a WhatsApp voice call in one tap. - [WhatsApp Call QR Generator](https://www.infiq.in/tools/whatsapp-call-qr-generator): A printable QR that rings your business on WhatsApp when scanned. ## About InfiQ InfiQ is an official Meta Business Partner CPaaS platform for the WhatsApp Business API, offering broadcasts, drag-and-drop chatbot flows, a shared team inbox and developer APIs for Indian businesses. - All 47 free tools: https://www.infiq.in/tools (index for LLMs: https://www.infiq.in/tools/llms.txt) - Site overview for LLMs: https://www.infiq.in/llms.txt - Pricing: https://www.infiq.in/pricing