Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27894

    Hello,

    I updated my Enfold theme and realised my map wasn’t working anymore on my website :

    http://www.fuckmynose.com/tricking-sessions/

    Using Events Manager plugin, this map is supposed to display incoming events from the calendar.

    I hope you may find something to fix this.

    Thank you very much for your help.

    Axel

    #135735

    Hi,

    I’m not sure what is wrong with the map. Have you tried removing it then placing it again?

    Please try to deactivate all your plugins except for the map.

    Regards,

    Ismael

    #135736

    If you’re using the google maps widget (sidebar or footer widget areas) Enfold & the plugin will load the google maps api script multiple times and this can break the maps api. In this case insert following code at the bottom of functions.php:

    //php code fixes
    add_filter('tribe_get_embedded_map','avia_deactivate_google_api',10,1);
    function avia_deactivate_google_api($google_map){
    global $avia_config;
    if(!empty($google_map)) $avia_config['g_maps_widget_active'] = 1;
    return $google_map;
    }

    and Enfold won’t load the google maps api script anymore.

    If you’re not using the widget probably something else triggers the js error. In this case I’d suggest to deactivate all other third party plugins to find potential plugin conflicts and if this doesn’t help try to switch to the default theme (TwentyTwelve or Thirteen). If the issue still persists please contact the plugin author and ask him to fix the bug.

    #135737

    Thank you for your help!

    I tried removing it and replacing it again but unfortunately it didn’t fix it.

    Then I deactivated every other plugin without success..

    I reinstalled Events Manager and it did not help either..

    I used eventually Dude’s script and unfortunately it didn’t solve it..

    The map is working fine on my “Contact” page since I use the widget. Here it is a map generated by a shortcode from Events Manager that is supposed to display incoming events.

    Thank you for your help. It is very well appreciated. :)

    [Edit]

    I just find out that my console is displaying an error :

    Uncaught ReferenceError: map is not defined

    I am investigating to see how I can fix this, but does this mean it has nothing to do with the theme or does it?

    Thank you!

    #135738

    I noticed that my code won’t work with your plugin. I mixed the “Event Manager” up with “Tribes Event Calendar”. Try following code instead:

    $avia_config['g_maps_widget_active'] = 1;

    $avia_map_prefix = isset($_SERVER['HTTPS'] ) ? "https" : "http";
    wp_register_script( 'avia-google-maps-api', $avia_map_prefix.'://maps.google.com/maps/api/js?sensor=false', array('jquery'), '1', false);
    wp_enqueue_script( 'avia-google-maps-api' );

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Events Manager’ is closed to new replies.