• I have several unnecessary styles dequeued from functions.php, but this plugin is putting them back onto the page into the CDN. How do I stop the plugin from re-picking these up.

    Example of the code.
    `add_action( ‘wp_enqueue_scripts’, ‘wpba_dequeue_unnecessary_styles’, 999 );
    function wpba_dequeue_unnecessary_styles() {
    wp_dequeue_style( ‘wp-block-library’ );
    wp_deregister_style( ‘wp-block-library’ );
    }

    • This topic was modified 5 years, 11 months ago by starvoters1.
Viewing 1 replies (of 1 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @starvoters1,

    Can you please let me know how you see that SPAI is putting them back? Any little detail you can tell us will be appreciated.

    Also, does the issue stop when SPAI is deactivated? If not, then SPAI is not the issue here 🙂

    Thank you,

Viewing 1 replies (of 1 total)

The topic ‘Shortpixel adding Dequeued Styles back in’ is closed to new replies.