I just updated a site from http:// to https:// adding a SSL certificate.
I have used plugin ‘better find and replace’ plugin and all assets are loading over https://
the only remain problem is this browser javascript console error
Mixed Content: The page at 'https://www.domainname.com/' was loaded over HTTPS, but requested an insecure script 'http://maps.google.com/maps/api/js?sensor=false'. This request has been blocked; the content must be served over HTTPS.
I am using a enfold-child theme
However I found in the parent theme…
THEMES > ENFOLD > functions-enfold.php
LINE 76 $url = "http://maps.google.com/maps/api/js?v=3.27";
The url is hard code to http://
Changing this to https:// has no-effect on the browser error.
Google maps api is available over https
https://developers.google.com/maps/faq#ssl
hoping you can shed some light on this issue
FYI
The site is not using a MAP at all, yet Enfold is still loading the Google Map API code regardless.
Shouldn’t loading the Google Map javascript be conditional based on a map being used.
Hi,
Thank you for using Enfold.
The script should be loaded only if a google map exist. It’s probably added by a plugin or it is from a custom modification that you missed. Please post the login details here so that we can check the dashboard.
UPDATE: The script is actually no longer part of the theme anymore. Do you have the latest version (4.0.2) of the theme?
https://developers.google.com/maps/documentation/javascript/tutorial#google.maps.Map
Best regards,
Ismael
credentials below
Hey!
Thank you for the update. I checked the site today and the mixed error is no longer there. How did you fix it? I also noticed multiple child theme templates in the Appearance > Themes panel. What are they doing there?
Regards,
Ismael
Hi Ismael,
Yes the culprit was a plugin “Indeed PopUps”
I have replaced the need for this plugin by using this code
https://kriesi.at/support/topic/code-snippet-inline-post-content-popup-magnific-popup-shortcode/
you can consider this closed.
thanks for the great support.