Title: Styles &gt; Broken Dependencies
Last modified: January 6, 2019

---

# Styles > Broken Dependencies

 *  [stfa76](https://wordpress.org/support/users/stfa76/)
 * (@stfa76)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/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](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/](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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [7 years, 5 months ago](https://wordpress.org/support/topic/styles-broken-dependencies/#post-11059348)
 * Thanks for the message.
 * No idea what could be causing this, I’ll try to find some time this week to take
   a look.

Viewing 1 replies (of 1 total)

The topic ‘Styles > Broken Dependencies’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/styles-broken-dependencies/#post-11059348)
 * Status: not resolved