CSS Minify feature breaks theme’s inline CSS
-
First of all, thanks for a great plugin that speeds up my WP website and brings me to the green field on PageSpeed Insights (at least for desktop currently)! However, I’ve got a problem when minifying CSS files. When I customize the look of the NanoSpace theme (using
wp-admin/customize.php), it adds some CSS code inlined to the rendered webpage after the theme’s default styles:<link rel='stylesheet' id='nanospace-stylesheet-main-css' href='...' type='text/css' media='screen' /> <link rel='stylesheet' id='nanospace-stylesheet-shortcodes-css' href='...' type='text/css' media='screen' /> <link rel='stylesheet' id='nanospace-stylesheet-custom-css' href='...' type='text/css' media='screen' /> <style id='nanospace-inline-css' type='text/css'> /* START CSS variables */ ...When I turn on minification and/or merging CSS files, the
nanospace-inline-cssgets before minified theme’s CSS files which therefore override my customization (resulting in a black footer and menu items of the webpage while they should be blue).I tried to change the priority of
add_action( 'wp_enqueue_scripts' ...inwp-content/themes/nanospace/includes/customize/class-customize-styles.phpbut this did not have any effect.Is there a way to keep the theme customization working and use CSS minifying same time?
The page I need help with: [log in to see the link]
The topic ‘CSS Minify feature breaks theme’s inline CSS’ is closed to new replies.