Created
June 10, 2014 23:48
-
-
Save ellenbo/3e6285d56f7f4fc0a526 to your computer and use it in GitHub Desktop.
Deregister a plugin stylesheet
This file contains 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
add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); | |
function my_deregister_styles() { | |
wp_deregister_style( '*STYLESHEET HANDLE*' ); | |
} | |
//Stylesheet handle can be found by going to the plugin index php file and searching for wp_enqueue_style. | |
//Source: http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment