Can’t get exclude js working
-
When I use the combine javascript option in SG Optimizer I get errors on this page: https://www.pointillist.com/blog/
I added the following to functions.php to exclude these 3 Essential Grid plugin files, but it looks like they are still being combined by SG Optimizer. What am I doing wrong?
add_filter( ‘sgo_css_combine_exclude’, ‘css_combine_exclude’ );
function css_combine_exclude( $exclude_list ) {
// Add the style handle to exclude list.
$exclude_list[] = ‘tp-tools’;
$exclude_list[] = ‘essential-grid-essential-grid-script-js-extra’;
$exclude_list[] = ‘essential-grid-essential-grid-script’;
return $exclude_list;
}add_filter( ‘sgo_js_async_exclude’, ‘js_async_exclude’ );
function js_async_exclude( $exclude_list ) {
$exclude_list[] = ‘tp-tools’;
$exclude_list[] = ‘essential-grid-essential-grid-script-js-extra’;
$exclude_list[] = ‘essential-grid-essential-grid-script’;
return $exclude_list;
}The page I need help with: [log in to see the link]
- The topic ‘Can’t get exclude js working’ is closed to new replies.