How to add the Whatsapp share button to Blogger

How to add the Whatsapp share button to Blogger

Preview (only visible on the mobile version through Android or IOS systems)
The presence of buttons to share the pages of the sites is very important for all electronic sites, as it is an effective way to promote the site and publish topics on a large scale.

It is also very important to pay attention to the appearance of the site on the screens of tablets and mobile devices and use modern additions appropriate to the applications preferred by users via their smart phones, among these additions is the whatsapp share button where the visitor can send a link and the title of the topic or the site link to any person you choose from your friends list On the mobile phone.

I think it is very well known that Whatsapp is developed by engineers from Yahoo and now it belongs to Facebook, and it is known that this application is one of the most used applications on smartphones.

  • Go to the Blogger Dashboard  > Layout.
  • Add a widget.
  • Choose Html & javascript.
  • Copy and paste the following code into the tool.

<script type="text/javascript">if(typeof wabtn4fg==="undefined"){wabtn4fg=1;h=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript";s.src="";h.appendChild(s);}</script>

<a class="wa_btn wa_btn_m" data-href="" data-text="Take a look at this awesome website:" href="whatsapp://send" style="display: none;">Share</a>

As I said in the first in order to see how the button works directly, you should preview using the mobile device.

-Source code:
Disqus Comments