[ad_1]
*** THIS IS A PUBLIC SERVICE ANNOUNCEMENT ***
Avada 7.10 (released March 28, 2023) introduced a fix to solve a Google Maps API console warning caused by a missing callback attribute.
If you’re an Avada user, have a Google Map embedded in your website, and have enabled Combine JavaScript Files in SGO, please add the following code snippet to your functions.php file to solve the consequent browser console error: “awbMapInit is not a function.”
add_filter( 'sgo_javascript_combine_excluded_inline_content', 'js_combine_exclude_google_maps_inline_script' );
function js_combine_exclude_google_maps_inline_script( $exclude_list ) {
$exclude_list[] = 'function awbMapInit';
return $exclude_list;
}You’re welcome 🙂
