Whatsapp Share Button

Step 1:Include the HTML Embed Element by clicking on the Add Element on the top left corner. ( The ‘+’ Sign)
Step 2: Copy the following code and place it in the the embed widget.

<!-- Makes the image a link , the link is obtained from the next script block -->
<a href="#" id="demo" alt="Share on Whatsapp">
  <img src="https://daks2k3a4ib2z.cloudfront.net/5731ae20281a641e44248bea/57c6b3863d3f57e261d737d2_WhatsApp-Transparent.png" alt="" style="width:42px;height:42px;border:0;" />
</a>

<script>
/* Appends the current location to the whatsapp text to the href parameter of a tag */
document.getElementById("demo").href ="whatsapp://send?text="+ location.href;
</script>
1 Like

Thank you so much! This works very well!!