incompatibility with Multilanguage plugin | WordPress.org

[ad_1]

Hello @overyah ,

There is no incompatibility between the SG Optimizer and the Multilanguage plugin. It appears that some of the .css that get combined are breaking the rendering of the specific page. To prevent that you should exclude the .css that is related to that product grouping on the home page.

The drop-down list contains CSS Styles which are added to the code of your site through standard coding procedures. CSS Styles which were added not following the standard coding recommendations, would not show up there. For these, you need to use exclusion code filters. For these, you have to find or know the handle of the style and not the style sheet name directly.

Here is a post here which explains how you can find the handle for each one of your styles and then how to exclude it. You may also contact the developer of the theme / plugin the style of which you want to exclude and they should be able to provide you with the handle name.

You can exclude styles from being combined and minified using the filters we’ve designed for that purpose. Here’s an example of the code, you can add to your functions.php file:

add_filter( 'sgo_css_combine_exclude', 'css_combine_exclude' );

function css_combine_exclude( $exclude_list ) {

    // Add the style handle to exclude list.

    $exclude_list[] = 'style-handle';

    $exclude_list[] = 'style-handle-2';

    return $exclude_list;

}

add_filter( 'sgo_css_minify_exclude', 'css_minify_exclude' );

function css_minify_exclude( $exclude_list ) {

    // Add the style handle to exclude list.

    $exclude_list[] = 'style-handle';

    $exclude_list[] = 'style-handle-2';

    return $exclude_list;

}

Best regards,
Georgi Ganchev

 

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