WALinkPro

WhatsApp chat button for your website

Design a floating “Chat with us” button, preview it live, and paste one small piece of code into WordPress, Shopify, Wix or any HTML site.

+1

Style
Position
Devices
Preview

How to add a WhatsApp button to your website

  1. Enter your number and an optional first message, then pick the text, colours and position.
  2. Copy the code. It’s plain HTML and CSS: no external script, no cookies and nothing that slows your site down.
  3. Paste it just before the closing </body> tag of your site, or into the “custom code” or “footer scripts” box your website builder provides. Instructions for popular platforms are below.

WordPress

  • With a code plugin: install a header-and-footer code plugin such as WPCode, create a new snippet, paste the code and set it to load in the site footer.
  • Without a plugin: in a block theme go to Appearance → Editor → Patterns → Footer, add a Custom HTML block and paste the code. In a classic theme, use Appearance → Widgets and add a Custom HTML widget to the footer.

You don’t need a WhatsApp plugin for this. A snippet avoids extra scripts and plugin updates.

Shopify

Go to Online Store → Themes, click the three dots next to your theme and choose Edit code. Open theme.liquid, find </body> near the end, paste the code just above it and save.

Wix, Squarespace and others

  • Wix: Settings → Custom code → Add custom code, paste it, choose All pages and Body – end.
  • Squarespace: Settings → Developer tools → Code injection, paste it into the Footer box. Code injection needs a Core plan or higher.
  • Webflow: Site settings → Custom code → Footer code, then publish.
  • Plain HTML: paste it before </body> on every page, or in your shared footer template.

Good practice

  • Say when you reply. Use the greeting bubble for something like “We reply within an hour, 9am to 6pm”.
  • Use a first message that tells you where the chat came from, such as “Hi, I’m on your pricing page”.
  • Keep it clear of other buttons. If you already have a chat widget or a cookie banner at the bottom, raise the button with the distance setting.
  • Use a WhatsApp Business number for greeting and away messages, quick replies and a business profile. See our message templates.

Questions

Will the WhatsApp button slow down my site?

No. The code is a link and a few lines of CSS, under 3 KB. It loads no scripts, fonts or images from other servers.

Does the button work on phones and computers?

Yes. On phones it opens the WhatsApp app. On computers it opens WhatsApp Desktop if installed, or WhatsApp Web.

Is the code safe to use with cookie consent rules?

The button sets no cookies and loads nothing until someone taps it, so it doesn’t need consent on its own. Once they tap, WhatsApp’s own terms apply.

Can I change the button later?

Yes. Come back, set it up again and replace the old code with the new one. Nothing is stored on our side.

Can I show the button only on some pages?

Yes. Paste the code only on those pages, or use your platform’s page settings for custom code. In WordPress, code plugins let you choose pages.

More free WhatsApp tools