• Resolved mariaharwen

    (@mariaharwen)


    Hi! I love the new version!! But I have some issues.=( Can you help me? I can′t visualice the maps since the last actualization. Apart from that in all listing page and in the single page the link’s location doesn′t work.

    And I have a problem with these script. It doesn′t work now

    jQuery(document).ready(function($){
    
        $(".atbd_contact_info ul li").children().each(function() {
          if ($(this).is(":contains('Whatsapp')")) {
            	$(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'); 	
          }
        });
    });

    I could add the whatsapp icon but I need to link the number with the app too. It is possible now?
    Thanks!!!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rafiz Sejim

    (@rafizsejim)

    Greetings,

    I apologize for the delay. Due to the sudden surge in tickets, temporarily you might experience unusual delays.

    The map issue has been fixed, make sure to add the map on Single Listing Layout Builder > Content.

    Also, please update the code with the following. This should work.

    jQuery(document).ready(function($){
    
        $(".directorist-details-info-wrap .directorist-single-info-phone").children().each(function() {
          if ($(this).is(":contains('Telefono')")) {
                $(this).children().children().addClass('fa fa-whatsapp').removeClass('la la-phone').css({'font' : 'normal normal 900 16px/2 "Font Awesome 5 Brands"', 'width': '35px'});
                 var whatsappNumber = $(this).next().text().replace(/[-]/g, '');
                 var selectwaNumber = $(this).next().children();
                 selectwaNumber.attr('href', 'https://wa.me/'+ $.trim(whatsappNumber));
                 selectwaNumber.attr('target', '_blank');   
          }
        });
    });

    Regards,

    Thread Starter mariaharwen

    (@mariaharwen)

    Hi! thanks so much for the answer. I try the solution you gave me but it doesn′t work, I change the name of the field “Whatsapp”, because it is a custom field but nothing happens. (I need to do that in the grid listing and in the single listing)
    And the same thing with the address. I need to make a link in the address to click (in the grid listing) in order to direct me to googlemaps page. In previus versions, you could do that.
    Thanks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Map’ is closed to new replies.