Home › Forums › Front-end Issues › Enqueue Google Map › Reply To: Enqueue Google Map
Morning @rudtek
Thanks for confirming my code worked, that was useful.
I ended up stripping anything else out my functions file, low and behold, the map displayed.
I worked through adding the other functions back in until it broke. I then found the below was the reason why it wasn’t working:
###
# REMOVE QUERY STRINGS FROM STATIC RESOURCES
###
function cleanup_query_string( $src ){
$parts = explode( '?', $src );
return $parts[0];
}
add_filter( 'script_loader_src', 'cleanup_query_string', 15, 1 );
add_filter( 'style_loader_src', 'cleanup_query_string', 15, 1 );
It now works!
Thanks for your time and help!!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.