• My site uses the 2014 theme via a child theme. A problem with Google maps has recently arisen: the MapPress plugin will now only deliver a Google map with the default view (the whole of North America) rather than a map centred on a UK address specified within the plugin. Following MapPress advice, I have obtained and entered a Google Maps browser API key and enabled the Javascript and Geocoding APIs. No success. The MapPress FAQ goes on to suggest that the problem may be that the Google Maps API is being loaded twice and that it may be solved by editing functions.php and entering code similar to this:

    function google() { wp_dequeue_script( ‘google-maps-api’ ); }
    add_action( ‘admin_enqueue_scripts’, ‘my_et_pb_admin_scripts_styles’, 99, 1 );

    The advice is to change ‘google-maps-api’ to the name actually used by the theme. What is that name, please?

    Any other advice?

The topic ‘How to reference Google Maps API’ is closed to new replies.