Hi Stanimir, for your answer, but unfortunately it doesn’t work.
I checked the problem here on our website: https://www.crazywebstudio.co.th/
And by debugging the Combinator file and the variable
$styles->to_do
I don’t even the specific CSS in the list.
Array
(
[0] => dashicons
[1] => admin-bar
[2] => wp-block-library
[3] => dica-lightbox-styles
[4] => swipe-style
[5] => wtfdivi-user-css
[6] => essential-grid-plugin-settings
[7] => tp-font-awesome
[8] => siteground-optimizer-combined-styles-header
[9] => parent-style
[10] => divi-style
[11] => quadmenu-divi
[12] => quadmenu-normalize
[13] => quadmenu-widgets
[14] => quadmenu
[15] => quadmenu-locations
[16] => fontawesome5
[17] => divi-carousel-styles
[18] => et-builder-googlefonts-cached
[19] => et-shortcodes-responsive-css
[20] => magnific-popup
)
but in any case when the option Combine CSS is active, that file disappear from the output.
That’s really strange.
Ninja Forms plugin load the CSS in this way:
public static function enqueue_styles_display( $css_dir ) {
switch( Ninja_Forms()->get_setting( 'opinionated_styles' ) ) {
case 'light':
wp_enqueue_style( 'nf-display', $css_dir . 'display-opinions-light.css', array( 'dashicons' ) );
wp_enqueue_style( 'nf-font-awesome', $css_dir . 'font-awesome.min.css' );
break;
case 'dark':
wp_enqueue_style( 'nf-display', $css_dir . 'display-opinions-dark.css', array( 'dashicons' ) );
wp_enqueue_style( 'nf-font-awesome', $css_dir . 'font-awesome.min.css' );
break;
default:
wp_enqueue_style( 'nf-display', $css_dir . 'display-structure.css', array( 'dashicons' ) );
}
}
Any other idea?