Problem: Google Map not displaying on The Events Calendar WordPress plugin’s Event detail page on FireFox and Chrome. It displays fine on Safari.

  • Google Map not displaying because of a non-secure HTTP API link.
  • Error message in FireFox (detected via Console): “http://maps.google.com/maps/api/js?sensor=false”

The Events Calendar, v 3.1.
WordPress, v 3.6.1

Solution: FIX for missing Google Map (on FF, Chrome) on Event’s detail page.

Add to functions.php file:

[code]add_filter( ‘tribe_get_embedded_map’, ‘tribe_fix_google_maps_https’ );
function tribe_fix_google_maps_https( $html ) {
if ( is_ssl() ) {
$html = str_replace( ‘http://’, ‘https://’, $html );
}
return $html;
}[/code]

Solution from plugin author