Shortpixel adding Dequeued Styles back in
-
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’ );
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Shortpixel adding Dequeued Styles back in’ is closed to new replies.