How can I Dequeue and Deregister the sdm-styles-css style sheet? For page speed
-
I don’t need or use the CSS that this plugin loads. The CSS is load right at the top of my site and causing render blocking. I’m trying to Dequeue and Deregister the stylesheet. The following doesn’t seem to work.
function remove_sdm_styles() {
if (wp_style_is('sdm-styles-css', 'enqueued')) {
wp_dequeue_style('sdm-styles-css');
wp_deregister_style('sdm-styles-css');
}
}
add_action('wp_enqueue_scripts', 'remove_sdm_styles', 100);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can I Dequeue and Deregister the sdm-styles-css style sheet? For page speed’ is closed to new replies.