Skip to content

Instantly share code, notes, and snippets.

@ellenbo
Created June 10, 2014 23:48
Show Gist options
  • Save ellenbo/3e6285d56f7f4fc0a526 to your computer and use it in GitHub Desktop.
Save ellenbo/3e6285d56f7f4fc0a526 to your computer and use it in GitHub Desktop.
Deregister a plugin stylesheet
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