Share Your Content On WhatsApp Without Using Api - Mostlikers

05 November, 2015

Share Your Content On WhatsApp Without Using Api

In this post i have explain about How to share content on WhatsApp without using api. Most of the smartphone user using WhatsApp application. If your content is good they will share with others. You can get many visitors in your website. So adding WhatsApp share button to website or blog it's good idea. 

Share Your Content On WhatsApp Without Using Api

Live Demo          Download


Url will share whatapp href= whatsapp://send?text="text". Html5 attribute element will take data-action.   
  <a class="btn btn_prop" href="whatsapp://send?text= Your text message enter here" data-action="share/whatsapp/share">
Share via Whatsapp</a>


Share button i have added style code btn btn_prop
<style type="text/css">
  .btn {
    background-image: url('whats_icon.png');
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block !important;
    position: relative;
    cursor: pointer;
    text-transform: none;
    color: #fff;
    border-radius: 3px;
    background-color: #5cbe4a;
    background-repeat: no-repeat;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;

.btn_prop {
    font-size: 16px;
    background-size: 20px;
    background-position: 5px 5px;
    padding: 8px 6px 8px 30px;
    color: #fff;

Have a Question? Share your query by writing a comment below.

"If we are not free, no one will respect us. "
                                         - A. P. J. Abdul Kalam

Related Topics

  • Analyze and optimize your website with google PageSpeed tools
  • Find latitude and longitude with Google Maps
  • Generate RSS Feed for website using php and json script
  • Ajax add,view and delete using mysqli
  • Active and inactive users concept using php and Ajax
  • How to Make a Simple Search Engine using PHP and MySQLi
  • PDO basic insert,view,update,delete with php function
  • Send email with html template using php
  • Login with facebook using codeigniter

1 comment:

  1. But if we use it in a website, a user on pc will get a page like 'address wasn;t understood'. Please include some detail on its usage.