How can I code a custom call button in the liquid section?

Can someone give me a code to be added in the “custom liquid” section which will display a call button?

There are many free apps providing the same but they are all floating button.

Thanks in advance

@Rainson Can you provide any example button ? Thanks

1 Like

Yes. I managed to get a code to add “Whatsapp button” in my product page using custom liquid section.

I would like a similar one but for calling function instead. Ofcourse, the button has to look different in terms of the text, color, etc.

Here is the code for whatsapp button i got. Hope, you get what i mean

<a href="https://api.whatsapp.com/send?phone=+919875586445&text=Hi,

%20I%20want%20to%20order%20this%20product:%20{{ product.title }}

%20%20https%3A%2F%2F{{ shop_domain }}

%2Fproducts%2F{{ product.handle }}">

#1EA651;height:

44px;color:white;">

<img src="https://cdn.shopify.com/s/files/1/0073/2522/0979/files/

whatsapp-icon.png?v=1615793565" width=“25px” style=“vertical-align:middle;”>

Order On WhatsApp