Support » Plugin: Query Monitor » 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:

    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):

    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,

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn


    WordPress Core Developer

    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.