Google Maps, Docs not displaying using SSL
-
If anyone is having issues with Google Maps appearing on WordPress sites that are running SSL on all pages, I hacked the plugin core to load Google Maps and Docs using SSL. It is a simple change on lines 935 and 947 of inc/core/shortcodes.php changing the https:// to https:// in the iframe referenced URLs. Hoping maybe plugin developer can do the same.
Line 935:
return '<div class="su-document su-responsive-media-' . $atts['responsive'] . '"><iframe src="https://docs.google.com/viewer?embedded=true&url=' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" class="su-document' . su_ecssc( $atts ) . '"></iframe></div>';
and Line 947:
return '<div class="su-gmap su-responsive-media-' . $atts['responsive'] . su_ecssc( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://maps.google.com/maps?q=' . urlencode( su_scattr( $atts['address'] ) ) . '&output=embed"></iframe></div>';
- The topic ‘Google Maps, Docs not displaying using SSL’ is closed to new replies.