• Resolved Arsalan

    (@sam3000us)


    I want the visitors to be able to contact the owner of the list via Whatsapp by clicking on e.g (phone number 2) which will open whatsapp directly via (https://wa.me/1XXXXXXXXXX)

    Whatsapp is not available in the social field.

    • This topic was modified 4 years, 1 month ago by Arsalan.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello Arsalan,

    Thank you for reaching us out.

    I am sorry to let you know it is not possible by default. We will have to use JS to achieve what you are looking for.

    Would you mind sharing the URL of a single listing, so we can grab the field name in order to manipulate?

    Regards,

    Thread Starter Arsalan

    (@sam3000us)

    Hello Rafiz,
    there you go
    Link

    Thanks in advance.

    Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello Arsalan,

    Please download the plugin “Simple Custom CSS and JS” and add the code in Custom JS.

      jQuery(document).ready(function($){
    
        $(".atbd_contact_info ul li").children().each(function() {
          if ($(this).is(":contains('???? ?????')")) {
            	$(this).children().addClass('fa-whatsapp').removeClass('fa-phone').css({'font' : 'normal normal 900 16px/2 "Font Awesome 5 Brands"'});
                 var whatsappNumber = $(this).next().text();
            	 var selectwaNumber = $(this).next().children();
                 selectwaNumber.attr('href', 'https://wa.me/'+ $.trim(whatsappNumber));
            	 selectwaNumber.attr('target', '_blank'); 	
          }
        });
    });

    Regards,

    Thread Starter Arsalan

    (@sam3000us)

    Rafiz, You are the best!
    Thanks bro!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact via Whatsapp’ is closed to new replies.