Casa > H > How To Add An Html Code To My Website So That When People Click It, It Opens A Whatsapp Conversation With Me

How to add an HTML code to my website so that when people click it, it opens a WhatsApp conversation with me

We start by adding the libraries and CSS to the header of your website.

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  

Now you must add a div with the WAButton ID, which is where the plugin will render the click to chat button.

  1.  
  2.  

You must add a script block where the plugin is used on the div that we added in the previous step.

  1. $(function () { 
  2. $('#WAButton').floatingWhatsApp({ 
  3. phone: 'WHATSAPP-PHONE-NUMBER', //WhatsApp Business phone number 
  4. headerTitle: 'Chat with us on WhatsApp!', //Popup Title 
  5. popupMessage: 'Hello, how can we help you?', //Popup Message 
  6. showPopup: true, //Enables popup display 
  7. buttonImage: 'whatsapp.svg', //Button Image 
  8. //headerColor: 'crimson', //Custom header color 
  9. //backgroundColor: 'crimson', //Custom background button color 
  10. position: "right" //Position: left | right 
  11.  
  12. }); 
  13. }); 
  14.  

Replacement in Line 4:- WHATSAPP-PHONE-NUMBER with your WhatsApp mobile number in International Format.

De Caraviello Rota

Permitir o modo desenvolvedor no Chromebook o tornaria vulnerável a ataques sem fio? :: What is the HTML code for new line?