Styles > Broken Dependencies
-
Hi,
First, I’d like to wish you a happy new year.
I’m using a child theme and since the changes I made to the css were so important (I removed some parts, added others, etc.), I decided to replace the parent style with the child one using the code below within my ‘functions.php’ file:
function remove_default_stylesheet() { wp_dequeue_style( 'twentyfourteen-style' ); wp_deregister_style( 'twentyfourteen-style' ); wp_register_style( 'twentyfourteen-child-style', get_stylesheet_directory_uri() . '/style.css', false, '1.0.5' ); wp_enqueue_style( 'twentyfourteen-child-style' , get_stylesheet_directory_uri() . '/style.css', array(), '1.0.5'); } add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );Everything is working fine but the “Query Monitor” plugin keeps showing these two errors on the frontend of the website regarding broken dependencies with ‘blocks.css’ and ‘ie.css’ files: https://i.ibb.co/T1Psnm3/query-monitor-broken-dependencies.png
The screencap is taken from a staging environment but I have the same issue on the live site (which is not yet upgraded to WordPress 5): https://www.digitalcine.fr/
I tried to enqueue the missing css files by adding these lines but this does not seems to be working:
wp_register_style( 'twentyfourteen-child-style', get_template_directory_uri() . '/css/ie.css' ); wp_enqueue_style( 'twentyfourteen-child-style' , get_template_directory_uri() . '/css/ie.css' );Is there something that I did wrong?
Thanks a lot for your help.Best regards,
Stephane.
The topic ‘Styles > Broken Dependencies’ is closed to new replies.