Skip to content

Instantly share code, notes, and snippets.

@khoipro
Created April 13, 2016 09:19
Show Gist options
  • Save khoipro/f03c7b9f5cf0d6acd140a58619519884 to your computer and use it in GitHub Desktop.
Save khoipro/f03c7b9f5cf0d6acd140a58619519884 to your computer and use it in GitHub Desktop.
Remove default stylesheets from frontend WordPress
// remove auto stylesheet from admin + wp
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'dashicons' );
wp_deregister_style( 'admin-bar' );
wp_deregister_style( 'open-sans' );
wp_deregister_style( 'boxes' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment