Support

Account

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!!