Tagged: acf, advanced custom fields, google maps
Hi Guys,
I’m using your fantastic Enfold theme. I encountered only a little problem: I need to use ACF (advanced custom fields), but the ACF “google map” field type doesn’t work with Enfold. I did some search and found that the problem could be the google map api script inclusion (http://maps.google.com/maps/api/js?sensor=false…) in the admin. I found that Enfold includes this script enqueuing “avia-google-maps-api” script. I tried to remove the script inclusion adding this code to my child theme:
function remove_scripts()
{
wp_deregister_script( 'avia-google-maps-api' );
}
add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 );
but it doesn’t work. Do you have any idea to solve this problem? I would like to use ACF to add a store locator to my app, and I need the “google map” field to geolocate the input address.
Thank you very much for your help!
Hi!
Try the following:
https://kriesi.at/support/topic/disable-google-maps-api-call-in-backend/#post-308708
Cheers!
Josue
Thank you!