Add an embeddable WhatsApp Button to your website
Last updated
Last updated
Easily add a WhatsApp button like this to your website, using the customizable code snippet below.
To do this, you’ll need a WhatsApp Business Account and phone number. Don’t have one yet? Sign up here.
In the URL below, replace the number next to ‘phone’ with your WhatsApp Business phone number. The first digits represent the country code for the number. We’ll use MessageBird’s WhatsApp number (+31 39010240285) as an example: https://api.whatsapp.com/send?phone=3197010240285
Replace the highlighted link in the HTML code snippet below with the updated URL containing your WhatsApp Business phone number that you created in step 1. <a href="https://api.whatsapp.com/send?phone=3197010240285" style="display: inline-block; padding:16px; border-radius: 8px; background-color: #25D366; color: #fff; text-decoration: none; font-family: sans-serif; font-size: 16px;">Contact us on WhatsApp</a>
Add the HTML code snippet to your website and deploy!