Reply 169134 to: API Key for Google maps

Avatar: Rob
Rob
Participant
August 1, 2017 at 08:08

Good moring Rose,

Unfortunately it doesn’t work…..

The old code was:
} else {
if($a[‘gmap’] == 1):
wp_enqueue_script(‘google.maps’, ‘http://maps.google.com/maps/api/js?sensor=false’);
wp_enqueue_script(‘gmap’, get_template_directory_uri().’/js/jquery.gmap.min.js’);
?>
I changed it in:

} else {
if($a[‘gmap’] == 1):
http://maps.google.com/maps/api/js?key=AIzaSyBMbWDq7-r-BuLteiZGFEIFDUEb3cMcrJU&sensor=false’);
wp_enqueue_script(‘gmap’, get_template_directory_uri().’/js/jquery.gmap.min.js’);
?>

What am I doing wrong please?
Kind regards,
Rob

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.