Skip to content
Free website migration on every plan, done by our team.Learn more ›
Business

How to add a WhatsApp chat button to your website

Add a WhatsApp button to any website in minutes: build a wa.me click-to-chat link with a ready message, add it to WordPress or HTML, and avoid common mistakes.

Short answer: Make a click-to-chat link in the form https://wa.me/2348012345678 (your full number in international format, with no plus sign, spaces or leading zero), then put it behind a button on your website. Add ?text= with a short message so chats start with context. On WordPress you can use a button block or a WhatsApp plugin; on any HTML site, a simple link works.

For many customers, especially in Nigeria and across Africa, WhatsApp is the easiest way to ask a question before they buy. A visible WhatsApp button turns visitors into conversations.

  1. Take your WhatsApp number, for example 0801 234 5678.
  2. Remove the leading zero, spaces and symbols, then add your country code: 2348012345678 for Nigeria (234).
  3. Your link is https://wa.me/2348012345678.

Test it on your phone: it should open a chat with your number.

Step 2: add a ready-made message (optional)

Add ?text= followed by your message, with spaces written as %20:

https://wa.me/2348012345678?text=Hi%2C%20I%27d%20like%20a%20price%20for%20a%20website

The visitor can still edit the message before sending. Different pages can use different messages, such as "I'm interested in the 3-bedroom flat" on a property page, so you know exactly what they're asking about.

Step 3: add the button to your site

On WordPress

  • Add a Buttons block, type "Chat on WhatsApp" and paste your link.
  • For a floating button on every page, install a reputable WhatsApp chat plugin and enter your number. Keep plugins few and well maintained. See essential WordPress plugins.

On an HTML website

Add a link like this where you want the button:

<a href="https://wa.me/2348012345678?text=Hi%2C%20I%20have%20a%20question"
   class="whatsapp-button" target="_blank" rel="noopener">Chat on WhatsApp</a>

Style it with your site's button styles so it stands out.

Where to place WhatsApp buttons

  • In the header or as a floating button on mobile.
  • Next to prices and on product or service pages.
  • On your contact page, beside your phone number and email.
  • On landing pages for ads. See what is a landing page.

Tips for using WhatsApp with customers

  • Use the WhatsApp Business app for a business profile, opening hours, quick replies and an away message.
  • Say when you reply, for example "We answer within an hour, 8am to 8pm".
  • Keep a business email too, for invoices and records. See how to get a professional email address.
  • Don't put the number only in an image: search engines and screen readers can't read it.

Common mistakes

MistakeFix
Link includes +, spaces or a leading 0Use digits only, starting with the country code
Button opens WhatsApp Web on computers and confuses visitorsThat's normal; it opens the desktop app or WhatsApp Web. Add your phone number and email as alternatives
A heavy plugin slows every pageUse a lightweight plugin or a simple link. Test with our website speed test
Nobody answersSet an away message and reply times

Frequently asked questions

Is a WhatsApp button free?

Yes. Click-to-chat links are free to create and use with both WhatsApp and WhatsApp Business.

Can I add more than one WhatsApp number?

Yes. Use separate buttons, for example "Sales" and "Support", each with its own number and message.

Will a WhatsApp button slow down my website?

A plain link adds almost nothing. Some chat plugins load extra scripts on every page, so choose a light one.

Can visitors see my number?

Yes. Once the chat opens they see your number, just as when you share it any other way.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.