-
AuthorPosts
-
November 6, 2018 at 7:32 pm #1030530
First of, great theme.
I am however having difficulties with the new setting for the Google map to work.
I’ve requested an API key and pasted it in the Enfold options. It’s verified, so should be working ok.I’ve tried all tips from this thread: https://kriesi.at/support/topic/google-maps-for-development-purposes-only/.
There are no ‘restrictions’ set for the API key, also all ‘API’s are activated’.
I’ve also tried adding the following code from that post (and changed it as far as my knowledge goes) to the functions.php file:// Add scripts to wp_head()
function child_theme_head_script() { ?>
<script id=’avia_gmaps_framework_globals’ type=’text/javascript’>
/* <![CDATA[ */
var avia_framework_globals = avia_framework_globals || {};
avia_framework_globals.gmap_api = ‘AIzaSyAcSpn56YVd4Mg73ljfsMua9AjrivW1cEU’;
avia_framework_globals.gmap_maps_loaded = ‘https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyAcSpn56YVd4Mg73ljfsMua9AjrivW1cEU&callback=aviaOnGoogleMapsLoaded’;
avia_framework_globals.gmap_builder_maps_loaded = ‘https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyAcSpn56YVd4Mg73ljfsMua9AjrivW1cEU&callback=av_builder_maps_loaded’;
avia_framework_globals.gmap_backend_maps_loaded = ‘https://maps.googleapis.com/maps/api/js?v=3.30&callback=av_backend_maps_loaded’;
avia_framework_globals.gmap_source = ‘https://maps.googleapis.com/maps/api/js?v=3.30&key=AIzaSyAcSpn56YVd4Mg73ljfsMua9AjrivW1cEU’;
avia_framework_globals.gmap_avia_api = ‘https://www.autokoolen.nl/wp-content/themes/enfold/framework/js/conditional_load/avia_google_maps_api.js’;
/* ]]> */
</script>
<?php }
add_action( ‘wp_head’, ‘child_theme_head_script’ );However, the map is not working. What am I missing?
I’ve not added the billing information to Google, but this is only necessary with massive amounts of visitors right?Hopefully someone can help me with this problem.
November 8, 2018 at 11:30 pm #1031444 -
AuthorPosts
- You must be logged in to reply to this topic.