If you’re using Floating Button feature of OneClick Chat to Order, there is indeed a feature to include “From URL” with current page’s link into the message.
But unfortunately, you cannot move the function into another element just by using ID/class. That’s not how it works.
If you want to create the same function to attach the URL into the icon as per your needs, then you’ll need to create your own function using some kind of javascript or PHP, depending on your needs.
Or if you just want the icon to be clickable and link to WhatsApp with pre-filled chat text and phone number, then you might want to create a URL like the following and embed it into your icon:
https://api.whatsapp.com/send?phone=[phone number with country code]&text=[URL encoded message]
Notice that I use api.whatsapp.com as the base URL since it works fine with both mobile and desktop.
-
This reply was modified 4 years, 3 months ago by
walterpinem.