Where to insert Google Maps API code in functions.php
Your API key is URL encoded as a GET variable like so: wp_enqueue_script( ‘google_js’, ‘https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=yourKeyHere’, ”, ” ); I don’t urlencode the handle. The function/class does that. So if you’re having problems getting the script to load, don’t urlencode the handle.