Last active
January 24, 2018 20:15
-
-
Save misfist/f75a6dda7405d0aec13b173b71707b97 to your computer and use it in GitHub Desktop.
WordPress - Disable JetPack CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function prefix_remove_jetpack_styles() { | |
wp_deregister_style( 'jetpack-carousel' ); // Carousel | |
wp_deregister_style( 'the-neverending-homepage' ); // Infinite Scroll | |
wp_deregister_style( 'post-by-email' ); // Post by Email | |
wp_deregister_style( 'publicize' ); // Publicize | |
wp_deregister_style( 'sharedaddy' ); // Sharedaddy | |
wp_deregister_style( 'sharing' ); // Sharedaddy Sharing | |
wp_deregister_style( 'stats_reports_css' ); // Stats | |
wp_deregister_style( 'jetpack-widgets' ); // Widgets | |
} | |
add_action( 'wp_print_styles', 'prefix_remove_jetpack_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment