Child Theme – CSS Compression error
-
Hi Frank,
I enqueued my own CSS in a child theme functions.php. Everything works fine untill I switch on the CSS compression with Autoptimize plugin.
The front page is blank and a message display with “connection error”.
Usually I never encounter any issue ˉ\_(ツ)_/ˉSo, my question is: Does the wp_enqueue_style child theme function requiered a specific information for rolling peacefully with the CSS compression?
Here an excerpt of my functions.php.
function oxy_load_child_scripts() { wp_enqueue_style( THEME_SHORT . '-child-theme' , get_stylesheet_directory_uri() . '/style.css', array( THEME_SHORT . '-theme' ), false, 'all' ); // MY STYLE if ( is_front_page () ) { wp_enqueue_style( 'rotating-words', get_template_directory_uri() . '/../angle-child-theme/assets/css/rotating-words.css' ); } } add_action( 'wp_enqueue_scripts', 'oxy_load_child_scripts');
Thank you for your help and merry christmas!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Child Theme – CSS Compression error’ is closed to new replies.