Conflict with Siteground Optimizer | WordPress.org

[ad_1]

The plugin doesn’t work with Siteground Optimizer’s frontend options “Combine JavaScript Files” and “Exclude from JavaScript Combination” enabled.

The fix for this is to add the below into your functions.php file:

// Exclude certain third party scripts from SG Optimizer async loading //
// Exclude Address Auto-Complete Script//
add_filter( 'sgo_js_async_exclude', 'js_async_exclude' );
function js_async_exclude( $exclude_list ) {
	$exclude_list[] = 'aafw';

    return $exclude_list;
}

// Exclude certain third party scripts from SG Optimizer JS Combination //
// Exclude Address Auto-Complete Script//
add_filter( 'sgo_javascript_combine_exclude', 'js_combine_exclude' );
function js_combine_exclude( $exclude_list ) {	
	$exclude_list[] = 'aafw';
    return $exclude_list;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer