How to remove jetpack.css in frontend
-
How can I remove the style
wp-content/plugins/jetpack/css/jetpack.css
? It is being enqueued in fronted but I don’t need it.I’ve tried all of these snippets, none works:
add_action( 'wp_print_styles', 'cyb_deregister_styles', 100 ); function cyb_deregister_styles() { wp_dequeue_style('jetpack_css'); wp_deregister_style('jetpack_css'); } add_action( 'wp_enqueue_scripts', 'cyb_deregister_styless', 100 ); function cyb_deregister_styless() { wp_dequeue_style('jetpack_css'); wp_deregister_style('jetpack_css'); } add_action( 'init', 'cyb_deregister_styless', 100 ); function cyb_deregister_styless() { wp_dequeue_style('jetpack_css'); wp_deregister_style('jetpack_css'); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to remove jetpack.css in frontend’ is closed to new replies.