How to add a WhatsApp button to WordPress
A WhatsApp button lets visitors message your business with one tap, which is how many Egyptian customers prefer to ask before they buy. This guide shows you how to add a WhatsApp button to WordPress in three ways: with a plugin, with a simple link in a button or menu, or with a small floating-button code snippet.
First: build your WhatsApp link correctly
Every method uses the official click-to-chat link format:
https://wa.me/201XXXXXXXXX
- Use the full international number with the country code (Egypt is 20).
- Remove the leading
0, spaces, dashes and the+sign. So0100 123 4567becomes201001234567. - You can pre-fill a message by adding
?text=with URL-encoded text, for example:
https://wa.me/201001234567?text=Hello%2C%20I%20have%20a%20question
Open the link on your phone first to make sure it opens a chat with the right number.
Method 1: Use a plugin (easiest)
- Go to Plugins > Add New and search for WhatsApp. Choose a well-maintained plugin with many active installations and recent updates (for example Joinchat or Click to Chat).
- Install and activate it, then open its settings page.
- Enter your number in international format, a default message and the button position (bottom right or left).
- Optionally set a greeting text, show the button only on certain pages, or hide it on desktop.
- Save and check the site on mobile.
Method 2: Add WhatsApp to a button or menu
- In Elementor or the block editor, add a Button and set its link to your
wa.meURL. - To add it to the menu, go to Appearance > Menus, add a Custom Link with the
wa.meURL and the label "WhatsApp". - For WooCommerce, you can add a button on product pages such as "Order on WhatsApp" with a pre-filled message.
Method 3: A lightweight floating button (no plugin)
If you already use a code snippets plugin or a "header and footer scripts" option in your theme, you can add this to the footer. Replace the number:
<a href="https://wa.me/201001234567" target="_blank" rel="noopener"
aria-label="Chat on WhatsApp"
style="position:fixed;bottom:20px;right:20px;z-index:9999;
background:#25D366;color:#fff;border-radius:50px;
padding:12px 18px;font-weight:bold;text-decoration:none;
box-shadow:0 2px 8px rgba(0,0,0,.25)">WhatsApp</a>
On an Arabic (RTL) site you may prefer left:20px instead of right:20px.
wa.me as an event so you know how many leads come from WhatsApp.Tips
- Use a WhatsApp Business number, set business hours and a greeting/away message in the app.
- Do not cover important buttons such as "Add to cart" on mobile; adjust the position if needed.
- Keep one WhatsApp button only. Two floating buttons from different plugins look broken.
Common problems
- The chat opens with the wrong number or says the number is not on WhatsApp: the number still has a leading 0 or is missing the country code.
- Nothing happens on a computer: on desktop the link opens WhatsApp Web or the desktop app; the visitor needs to be logged in to WhatsApp.
- The button does not appear: purge your cache plugin and check whether the plugin is set to hide on some pages or devices.
Frequently asked questions
Will a WhatsApp plugin slow my site?
A good, lightweight plugin has very little impact. The manual link or snippet has almost none.
Can different departments have different numbers?
Yes. Many plugins support several agents, or you can add separate buttons for sales and support.
Can I add WhatsApp to my store's order flow?
Yes, as a "contact us" option. For tracking and handling orders inside WooCommerce, see how to manage orders in WooCommerce. For more tips see how to start an online store in Egypt.
Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.