If you build websites for small businesses, you have heard this request: "Can customers message us on WhatsApp from the website?" This guide covers the four ways I add WhatsApp chat to client sites, from a simple wa.me link to a custom floating button, with the code and the mistakes to avoid. No expensive chatbot needed, and the first two methods cost nothing.
Why Add WhatsApp Chat to Your Website?
Most small business websites in Pakistan lose enquiries at the contact step. The visitor is interested, but the form asks for a name, an email, a phone number, and a message, and then shows a thank you page with no reply time. WhatsApp removes that friction. The customer taps a button, types a question in an app they already open dozens of times a day, and gets an answer from a real person.
That matters because most buying questions are small. A clothing store visitor wants to know if a dress is available in medium. A property seeker wants two more photos of a house. A salon customer wants to know if Saturday morning is free. None of these need a form. They need a quick chat.
WhatsApp Business adds useful tools on top. You can set a greeting message, save quick replies for questions you answer every day, and label chats so hot leads do not get buried under casual questions. The button itself is only the start. The habit of answering quickly is what turns it into sales.
One thing to understand before you start: a basic WhatsApp button is a click to chat link, not a live chat box inside your website. Visitors tap it and continue the conversation in WhatsApp, on their phone or on WhatsApp Web. That is fine for most small businesses. A shared team inbox or an automated bot is a different job, and most businesses do not need it yet.
What You Need Before You Start
You need five things, and you probably have four of them already.
First, an active WhatsApp account, preferably WhatsApp Business. The Business app is free and gives you a business profile, greeting messages, and quick replies. Second, one dedicated business number. Do not use a personal number that three staff members share, because the chats will live on one phone. Third, access to your website, either the dashboard or the files, depending on the method you pick. Fourth, a short welcome message, so visitors know what to write. Something simple works: "Assalam-o-Alaikum! I visited your website and would like to know more about your products." Fifth, a decision about where the button appears. The bottom right corner is the standard spot, and it works on phones and desktops.
Pakistani numbers need one small fix before they work in a link. Drop the leading zero and add the country code 92. A local number like 03001234567 becomes 923001234567 in a WhatsApp link. No plus sign, no spaces, no dashes. Get this wrong and the button opens a chat with the wrong number or fails entirely, so test it before you publish.
4 Ways to Add WhatsApp Chat to Your Website
Pick the method that fits your site. All four work. The difference is how much control you want and whether you are comfortable touching code.
Method 1: WhatsApp Business Short Link
This is the easiest method, and it suits any business owner who wants a working button in ten minutes.
Open WhatsApp Business on your phone, go to Tools, then Short Link. WhatsApp gives you a ready-made link for your number. Copy it. Then open your website dashboard, add a button that says "Chat with Us on WhatsApp", and paste the link into the button's URL field. Save and publish.
You can also set a default message inside WhatsApp Business, so the chat opens with your greeting already typed. A Faisalabad clothing retailer, for example, can put this button on product pages so customers can ask about sizes, colours, and cash on delivery without leaving the page they are on.
Method 2: A wa.me Link and a Simple HTML Button
If your site is custom built, or you would rather not install a plugin, use a wa.me link. The format is simple: https://wa.me/ followed by your number in international format, so https://wa.me/923001234567. Anyone who taps it lands in a WhatsApp chat with you.
You can add a pre-filled message so the visitor does not have to think about what to write. Add ?text= and your message, with spaces encoded as %20, like this: https://wa.me/923001234567?text=Assalam-o-Alaikum%2C%20I%20need%20more%20information. When the chat opens, that message is already sitting in the text box, ready to send.
To turn the link into a button, ask your developer to add a small piece of HTML where you want the button to appear. The code is a link tag with your wa.me address and the words "Chat with Us on WhatsApp" as the visible text, set to open in a new tab. Send that snippet to your developer rather than editing files yourself if you are not comfortable with code. The whole job takes minutes.
WhatsApp's own click to chat documentation explains the link format and pre-filled messages in detail, and it is the reference we check whenever a client asks us to confirm the format.
Method 3: A WordPress Plugin
WordPress site owners can add a floating WhatsApp button without writing any code. Log in to your WordPress dashboard, go to Plugins, then Add New, and search for a WhatsApp click to chat plugin. Two well maintained options are Click to Chat and WP Chat App. Check the reviews, the last update date, and whether it works with your WordPress version before you install anything.
Install and activate the plugin, open its settings, and enter your WhatsApp number with the country code 92. Set the button text, pick the bottom right corner, and add a pre-filled message if you want one. Save, then visit your own site and tap the button to make sure it opens the right chat.
One plugin is enough. Installing three WhatsApp plugins at once only slows your site down and creates conflicts. Also know what a plugin does and does not do. A basic click to chat plugin opens WhatsApp when tapped. It does not give you a live chat inbox inside your website, and it does not store the conversation on your site. The chat still happens in WhatsApp.
Method 4: A Custom Floating Button on a Custom Website
If your website is custom built with HTML, CSS, and JavaScript, your developer can build the button directly into the site. No plugin needed. The HTML is the same wa.me link from Method 2, styled with a little CSS so it looks like a floating button: fixed in place near the bottom right corner, green background, rounded edges, and visible while the visitor scrolls.
This is the method we use most at aimEncoders for client sites, because it gives full control. The developer decides exactly which pages show the button, how it looks on a phone, and what message it pre-fills. A services page can pre-fill "Hello! I am interested in your web development services" while a product page pre-fills "Hello! Is this product available?" That small difference tells you what the visitor was looking at when they messaged you, which makes the reply easier.
The same warning applies as with the other methods. This is still a click to chat button, not a WhatsApp API integration. If your business needs a shared inbox for a team, automated replies, or a chatbot, that is a bigger project with different tools.
Common Mistakes That Break WhatsApp Buttons
Adding the button is easy. These four mistakes are why so many of them never bring a single message.
Wrong Number Format
This is the most common failure. The link must use the international format with country code 92 and no leading zero, plus sign, spaces, or brackets. A link built from 03001234567 will not reach your business. Always tap your own button after publishing and confirm the right chat opens.
A Button Nobody Can Find
A button buried at the bottom of a long page might as well not exist. Put it where visitors can see it on every page, usually the bottom right corner. But do not let it cover your checkout button, your navigation, or your own contact form on a phone. Check it on a small screen, not only on your laptop.
Never Testing It
Test the button on an Android phone, an iPhone if you have one, and a desktop browser with WhatsApp Web. Check that the correct business account opens and that the pre-filled message shows correctly. At aimEncoders, we test every button on real phones before a site goes live, because a button that opens the wrong chat is worse than no button at all.
Ignoring the Messages
A chat button only works if someone answers. Set a greeting message and an away message for off hours, save quick replies for the questions you hear every day, and tell customers when they can expect a reply. A visitor who waits two days for an answer will not wait a third. If one person handles the phone, make sure someone covers it when they are away.
How WhatsApp Chat Turns Visitors Into Enquiries
A button on its own does not sell anything. It sells by removing the step where visitors give up. A clothing store gets questions about sizes and delivery charges. A property dealer gets requests for photos and viewing times. A restaurant gets menu and catering questions. A salon gets booking enquiries. A digital agency gets requests for quotations. In each case the visitor was already interested. WhatsApp just gave them the easiest way to say so.
Three things make it convert. First, fewer barriers: no form, no account, no waiting for an email reply. Second, personal answers: you can ask one follow-up question and close the sale in the same conversation. Third, better follow-up: WhatsApp Business labels let you mark a chat as a hot lead, a price question, or an order, so nobody slips through.
Measure it simply. Count how many people tap the button each week, and how many of those chats turn into orders or bookings. A tap is not a sale. But if fifty people tap and none buy, the problem is usually your reply speed or your prices, not the button. If nobody taps at all, the button is hidden or the number is wrong.
Use different pre-filled messages on your important pages. The homepage can say "Hello! I would like to know more about your business." A product page can ask about availability. A services page can ask for a quote. You will know at a glance what each visitor wants, before you type a word.
How We Add WhatsApp Chat to Client Websites
Adding WhatsApp chat to an existing site is usually a small job, not a rebuild. At aimEncoders, we add floating buttons, wa.me links, and pre-filled messages to the sites we build, and we test them on real phones before launch. For WordPress sites we set up one well maintained plugin and configure it properly. For custom sites we build the button into the design so it matches the brand and behaves on every screen size.
Every button goes through our QA pass. We tap it on Android and iPhone, check the right business account opens, confirm the pre-filled message appears, and make sure it never covers a checkout or booking button. A chat button that opens the wrong number is a bug, and we treat it like any other bug.
If your site needs WhatsApp chat, or your current button is not bringing any messages, talk to us about custom websites and web apps built around how your customers actually behave. And if your contact page is the other place enquiries go missing, our local SEO playbook explains how reviews and local search bring customers to the site in the first place.
Frequently Asked Questions
Can I add WhatsApp chat to my website for free?
Yes. A WhatsApp Business short link or a wa.me link costs nothing, and several WordPress plugins have free versions that cover a basic floating button.
Do I need WhatsApp Business to add a chat button?
No. A standard WhatsApp account also receives click to chat messages. WhatsApp Business is worth it for the business profile, greeting messages, quick replies, and labels, all of which help you answer faster.
Can I add WhatsApp chat to WordPress without coding?
Yes. Install a WhatsApp click to chat plugin, enter your number with country code 92, set the button text and position, and save. No code needed.
Does a WhatsApp chat widget work on mobile phones?
Yes. A properly set up WhatsApp link or widget works on mobile and desktop. On a phone it opens the WhatsApp app, and on a computer it opens WhatsApp Web.
About the Author
Muhammad Asad Ullah is the founder of aimEncoders, a website development agency in Faisalabad. His team builds custom websites, web apps and ecommerce stores, and tests every button and form on real phones before launch.
Top comments (0)