how tos How To Install Whatsapp Sharing Link On Wordpress

Discussion in 'WordPress and other scripts' started by rayne, May 30, 2018.

  1. rayne
    Offline

    rayne Administrator CLAN LEADER CLAN CHIEF

    it's very simple and straight to the point if you have any question about my tutorials just beep me @rayne

    oya to the topic



    Some of you might ask why create a share to whatsapp link if you can use the native sharing features on your mobile to share a web page. Well from my personal experience, the native sharing to Whatsapp on Android as well as BlackBerry 10 sometimes doesn't include the title of the web page you wish to share.
    Including direct link to Whatsapp just like you have for twitter, Facebook, Google + etc makes the sharing process easier for web users.
    If you wish to implement it on your wordpress site (mobile site version makes more sense though some might be browsing your site in desktop mode on tablet), simply add the code below to wherever you want the link to appear in your wordpress theme template.

    Code:
    <a href="whatsapp://send?text=<?php the_title(); ?>: <?php the_permalink(); ?>" data-action="share/whatsapp/share">Whatsapp</a>
    
    Save the template and preview to make sure it's working right. It should output both the title and link of the web page
    This works on Android and BlackBerry 10. I tried it on Windows Phone without success and I don't have an iOS device so it might or might not work for web users on that mobile platform.
    Feel free to test it out with the whatsapp share link on this site
     
    Last edited: Jun 13, 2018
  2. rayne
    Offline

    rayne Administrator CLAN LEADER CLAN CHIEF

    i hope this helps alot of bloggers out there
     

Share This Page

Users Viewing Thread (Users: 0, Guests: 1)