Skip to content

For websites

A WhatsApp chat button with plain HTML, no plugin

Enter your number and button text, copy the generated HTML and paste it into your page. It is a normal link to wa.me with inline style: no JavaScript, no external file, no tracker. It works on WordPress, Shopify, Wix, Blogger and plain HTML.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up
  • No ads

Preview

How to add a WhatsApp button to a website

  1. Fill in the number and text. Choose colour, size and shape and see the live preview.
  2. Copy the code. Press Copy code.
  3. Paste it into your page. In WordPress use a Custom HTML block; in Shopify edit the theme or add a Custom Liquid section; in Wix use an Embed element; in plain HTML paste it before </body>.
  4. Test it on a phone. Tap the button on your live page and check the chat opens with your message.

Why plain HTML instead of a plugin

Many "WhatsApp chat" plugins load a script from another company, set cookies and slow the page. A chat button only needs a link. The code WaLink produces is a single <a> tag with the style written into it and a small inline chat-bubble icon. It loads nothing else, so it cannot slow your page or track your visitors.

Inline or floating?

Inline puts the button where you paste it, good for a contact section. Fixed pins it to the bottom-right corner of the screen so it follows the visitor. Some themes already use that corner for other buttons: if it overlaps, choose inline.

Making it accessible

  • The button text is real text ("Chat on WhatsApp"), so screen readers read it.
  • The colour is chosen so the text contrast is high: dark text on light buttons, white text on dark ones. Check your own colour choice.
  • It opens in a new tab with rel="noopener noreferrer".

Branding

The icon is a generic chat bubble, not WhatsApp's logo, and the default colour is not WhatsApp's green. WhatsApp's own brand resources have their own rules for using its logo; we have not checked them and so do not use it. If you want the official logo, follow Meta's brand guidelines yourself.

Frequently asked questions

Will the button work on every phone?

On phones with WhatsApp installed, the link opens the app. On a computer it opens WhatsApp Web or asks to open the desktop app.

Do I need to put my message in the code?

No. Leave the message empty and the chat opens with an empty box, or add a ready message such as "Hi, I would like to order".

Is the button tracked?

No. There is no script and no redirect. If you want click statistics, your site analytics can count clicks on the link separately.

Can I change the code later?

Yes, it is plain HTML. Change the number in the href, or generate a new one here.

Written and maintained by the DanixSoft team in Lahore. Last reviewed 2026-11-23. Found a mistake? Write to hello@danixsoft.com.