Info Window deactivate

New home Forums Gold Add-on Info Window deactivate

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23152
    schwab
    Member

    Is it possible to deactivate the Info Window? (display: none or something like that, or changes in a js-file?)

    Thank you.

    #23157
    Dylan
    Moderator

    Hi there,

    Although it is not possible to hide the info-window from within the settings, this can be achieved by making some minor changes to the core.js file.

    Are you comfortable with making changes to the code? I would be able to guide your through the process from my side.

    Thank you so much for your time. 🙂

    #23171
    schwab
    Member

    Yes – please guide me. I’m comfortable 🙂

    #23172
    Dylan
    Moderator

    Hi again,

    Not a problem at all, please open the core.js file of the Pro add-on (wp-google-maps-pro/js/core.js) and change the following code:

    google.maps.event.addListener(marker, 'click', function(evt) {                              wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id,val);
    });
    

    To this instead: (Line

    google.maps.event.addListener(marker, 'click', function(evt) {                              //wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id,val);
    });
    

    This should prevent the info-window from opening, if I am not mistaken. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.