Marketing Guide

How to Add a WhatsApp Chat Button to Your Website

Written by Muhammad Naeem8 min readUpdated for 2026

Most visitors will not fill in a contact form. They will, however, tap a green WhatsApp button and send a message — because chatting feels easier than emailing a stranger. A WhatsApp chat button puts that option on every page of your website, and setting one up takes only a few minutes. This guide walks you through the three simplest ways to do it: a free link button, a plugin, and a small HTML snippet.

A smartphone displaying the WhatsApp app
A smartphone showing the WhatsApp app. Photo by Anton on Pexels.

By the end, you will have a button that opens a chat with your business number, with a ready-made opening message so visitors never stare at a blank box wondering what to type.

What a WhatsApp Chat Button Does — and Why Visitors Use It

A WhatsApp chat button is a button on your website that opens a WhatsApp conversation with your business. On a phone it opens the WhatsApp app; on a computer it opens WhatsApp Web. The visitor does not have to save your number, copy it, or type it anywhere — one tap starts the chat.

It works well for small businesses because it removes friction. A visitor with a quick question — a price, an opening time, whether you deliver to their area — can ask it in seconds instead of filling in a form and waiting a day for a reply. It also keeps the conversation in an app the visitor already checks every day, so your answer is far more likely to be seen than an email reply.

The most common style is the floating button: a green circle with the WhatsApp logo that stays in the bottom corner of the screen as the visitor scrolls. You can also use a normal button inside a page, for example under a service description or on the contact page.

Before You Start: What You Need

You need three things before you begin, and all three are free:

  • A phone number on WhatsApp. Use the WhatsApp Business app rather than your personal account if you can — it lets you set a business profile, opening hours, and an away message. Keep your personal number private.
  • The number in international format. That means the country code, then the number, with no plus sign, spaces, brackets, or dashes. A Pakistani number like 0320 7140898 becomes 923207140898. A UK number like 07700 900123 becomes 447700900123.
  • A short opening message. Decide what the visitor's first message should say — for example, “Hi! I have a question about your services.” You will attach this to the button so the chat never starts empty.

That is all. The rest is choosing which of the three methods below fits your website.

Method 1: The Free wa.me Link Button

WhatsApp provides a short official link format called wa.me. It looks like this:

https://wa.me/923207140898

Replace the digits with your own number in international format. Anyone who opens that link lands straight in a chat with you. To add a ready-made opening message, add ?text= followed by the message, with spaces written as %20:

https://wa.me/923207140898?text=Hi!%20I%20have%20a%20question%20about%20your%20services.

Now turn that link into a button. In WordPress, Wix, Squarespace, or any website builder, add a button element, set its text to something like “Chat on WhatsApp”, and paste your wa.me link as the button's link. Style it green — WhatsApp green is #25D366 — so visitors recognise it at a glance.

This method costs nothing, needs no extra plugin, and works on every platform. Its only limit is that the button sits where you place it on the page — it does not float and follow the visitor as they scroll. For that, use Method 2.

Method 2: A Floating WhatsApp Button With a Plugin

A floating button stays fixed in the bottom corner of the screen on every page, so visitors can reach you from anywhere on your site. The easiest way to get one is a plugin or app for your platform:

  • WordPress: install a plugin such as Joinchat or Click to Chat from the plugin directory. After activation, enter your number, your opening message, and choose the button position and colour. Both offer a free version that covers the basics.
  • Wix: open the App Market, search for a WhatsApp chat app, add it to your site, and enter your number. The button appears on every page automatically.
  • Shopify: the same idea — search the App Store for a WhatsApp chat app, install it, and set your number and message. Check what the free plan includes before installing, because some apps charge for extra features like showing the button only on certain pages.
  • Squarespace: there is no built-in WhatsApp block, so use the small HTML snippet in Method 3 inside a Code block, or link a regular button to your wa.me link as in Method 1.

Whichever plugin you pick, keep it to one chat button. Two or three floating widgets — WhatsApp plus live chat plus a pop-up — crowd the screen and push visitors away instead of helping them.

Method 3: Add the Button With a Small HTML Snippet

If your website lets you add custom HTML — a custom-built site, a WordPress theme with a footer widget, or a Squarespace Code block — you can place a floating button with a short snippet. Paste the following just before your closing </body> tag, replacing the number and message with your own:

<a href="https://wa.me/923207140898?text=Hi!" style="position:fixed;bottom:20px;right:20px;background:#25D366;color:#fff;padding:14px 20px;border-radius:50px;text-decoration:none;font-weight:700;z-index:999">Chat on WhatsApp</a>

The position:fixed part is what keeps the button in the corner while the page scrolls. Change right:20px to left:20px if you prefer the button on the left. If your site already has a floating element in the same corner — a back-to-top button, for example — move one of them so they do not overlap.

This method gives you full control over the button's look and position, and it adds almost nothing to your page weight — it is a single link, not a script.

Where to Place the Button So Visitors Actually Tap It

A button nobody sees is the same as no button. These placements work best:

  • Bottom-right corner, on every page. Visitors expect help buttons there, and the corner stays out of the way of your content. On phones, keep it clear of the browser's own bottom bar.
  • Next to your main call to action. On service and pricing pages, a “Chat on WhatsApp” button beside “Get a Quote” catches the visitors who are interested but not ready to commit to a form.
  • On the contact page. Some visitors arrive there specifically to find a fast way to reach you. Give them the chat button alongside your email and phone number.
  • On product pages, if you sell online. A quick question about size, delivery, or stock is often the only thing standing between a visitor and an order.

Avoid putting the button over important content: the checkout button, a form's submit button, or the cookie notice. Test the placement on a real phone after adding it — a button that looks fine on a desktop screen can easily cover half a mobile screen.

Write a Pre-Filled Message That Gets Replies

The pre-filled message is the text that appears in the visitor's chat box when they tap your button. It matters more than most people think: a blank box makes visitors hesitate, while a ready-made sentence makes starting the conversation effortless.

Keep it short, friendly, and specific to the page the visitor came from. Good examples:

  • “Hi! I have a question about your services.”
  • “Hi! I'd like a quote for a new website.”
  • “Hi! Is this product in stock?”

If you can, use a different message on each key page — the pricing page can pre-fill “I'd like to ask about your pricing” while a product page pre-fills the product name. When you know which page the question came from, you can answer faster and the visitor feels understood.

One warning: keep the message honest. Do not pre-fill a message that claims the visitor wants something they never asked for, like “I want to buy now” — it feels pushy and puts people off.

Style the Button to Match Your Website

The green WhatsApp colour is instantly recognisable, so keep it — visitors spot the button faster when it looks like WhatsApp. What you should match to your site is the shape, size, and label:

  • Label it clearly. “Chat on WhatsApp” or “Chat with us” tells visitors exactly what happens when they tap. A bare logo leaves them guessing.
  • Size it for thumbs. On mobile, the button should be at least 48 pixels tall so it is easy to tap. A tiny icon in the corner gets missed.
  • Consider a greeting bubble. Many plugins can show a small pop-up — “Hi! How can we help?” — a few seconds after the page loads. It draws the eye, but set a delay of at least 5 seconds and let visitors close it; a bubble that appears instantly on every page feels aggressive.
  • Show your availability honestly. If you only reply during work hours, say so in your WhatsApp Business away message. A button that promises instant chat and then stays silent for a day does more harm than no button at all.

Common Mistakes to Avoid

  • Using your personal number. Your personal WhatsApp mixes business chats with family and friends, and your profile photo and status become public to customers. Set up the WhatsApp Business app on a separate number.
  • Forgetting the country code. A wa.me link with a local-format number simply does not open a chat. Always test the link yourself after creating it.
  • Never testing on a real phone. The button can look perfect in your website builder and still overlap content on a small screen. Tap it yourself on Android and iPhone before calling the job done.
  • Adding three chat widgets at once. WhatsApp, live chat, and a chatbot all competing for the same corner confuses visitors. Pick one main channel.
  • Hiding the button on mobile. Most WhatsApp users are on their phones. If you only show the button on desktop, you miss the visitors most likely to use it.

Test It, Then Leave It Alone

After adding the button, run a quick check: open your site on your phone, tap the button, and confirm the chat opens with your number and your pre-filled message. Send a test message to yourself and check that it arrives. Then check the desktop view too — the button should open WhatsApp Web, not show an error.

If the test works, you are done. A WhatsApp button is a small feature with an outsized effect: it turns silent visitors into conversations, and conversations into customers. Reply promptly when the messages come in — a fast answer is what turns the button from decoration into a real source of enquiries.

Conclusion

Adding a WhatsApp chat button is one of the smallest changes you can make to a website — and one of the most useful. Start with the free wa.me link if you want the button on a single page, use a plugin if you want it floating on every page, or paste the short snippet if your site takes custom HTML. Whichever method you choose, pair the button with a clear label, a helpful pre-filled message, and quick replies when the messages arrive. Visitors who can reach you in one tap are visitors who actually reach out.

Frequently Asked Questions

Is adding a WhatsApp chat button free?

Yes. The wa.me link from WhatsApp is free, and so is a basic button made with it. Plugins like Joinchat and Click to Chat offer free versions that cover a floating button, a pre-filled message, and position settings. Paid upgrades exist for extras such as showing the button only on certain pages or adding a greeting bubble.

Do visitors need WhatsApp installed to use the button?

On a phone, yes — tapping the button opens the WhatsApp app, so visitors need it installed. On a computer, the button opens WhatsApp Web in the browser, where they can scan a QR code with their phone to start chatting. Visitors without WhatsApp at all will need another way to reach you, so keep your email or contact form on the site too.

Can I use my personal phone number for the button?

You can, but it is better not to. A personal number mixes business messages with private chats and exposes your profile photo and status to customers. The WhatsApp Business app is free and gives you a business profile, opening hours, and automatic away messages — use a separate number for it.

What is a wa.me link?

It is WhatsApp's official short link format: https://wa.me/ followed by your phone number in international format, with no plus sign or spaces. For example, https://wa.me/923207140898 opens a chat with that number. Adding ?text= plus a message pre-fills the visitor's first message.

Will a WhatsApp button slow down my website?

A simple wa.me link button adds nothing measurable to your page — it is just a link. A plugin can add a small amount of loading time, usually a single small script. Avoid plugins that load heavy chat widgets or tracking scripts if page speed matters to you, and test your site speed after installing any plugin.

Can I add a WhatsApp button to WordPress?

Yes. The simplest way is to add a button in the editor and link it to your wa.me link. For a floating button that stays visible on every page, install a plugin such as Joinchat or Click to Chat, enter your number and opening message, and choose the position — it takes a few minutes and the free version is enough for most small business sites.

Want a WhatsApp Button That Matches Your Website?

Naeem WebStudio can add a WhatsApp chat button — styled to match your brand and placed where visitors actually tap it — to your website. Get in touch and we will set it up for you.

WhatsApp: 03207140898Send Email Inquiry

Explore More Resources & Services:

Social Media Integration TipsLanding Page Conversion TipsCall-to-Action Button GuideMobile-First Design ExplainedWebsite Speed & Conversions GuideHow to Choose a Web DeveloperServices & Pricing TiersOur 6-Step ProcessAbout Muhammad NaeemReact & Next.js SkillsLive Project PortfolioRequest a Custom Quote
Chat with Naeem