I have added some logos at the end of my website. I want to open respective apps based on the logos when clicked by users. This menu is shown when the user accesses the site via mobile
How can I open whatsapp message for a particular number when user clicks on it?
For example for email we have mailto and for telephone
we have tel
Click to chat works on both your phone and WhatsApp Web. Use https://wa.me/<number> where the <number> is a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format. The pre-filled message will automatically appear in the text field of a chat.
whatsapp link html // Use https://wa.me/<number> where the <number> is a full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.
You can use href of this element to
<a href="whatsapp://send?text=WHATEVER_LINK_OR_TEXT_YOU_WANT_TO_SEND" title="Share on whatsapp">WhatsApp</a>
For a specific number
href="//api.whatsapp.com/send?phone=91MOBILE_NUMBER&text=WHATEVER_LINK_OR_TEXT_YOU_WANT_TO_SEND"
Please make sure in phone, there is CountryCode 91 for India
They have a function called Click to Chat which I have tested in standard banners.
WhatsApp's Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone's address book. As long as you know this person’s phone number, you can create a link that will allow you to start a chat with them. By clicking the link, a chat with the person automatically opens. Click to Chat works on both your phone and WhatsApp Web.
Works on web, mobile web and mobile apps
Example of clicthrough URL - https://wa.me/0123456789?text=I'm%20interested%20in%20your%20car%20for%20sale
More info here: https://faq.whatsapp.com/en/android/26000030/
Adding international contacts/phone numbers: https://faq.whatsapp.com/en/general/21016748
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With