Deregistering styles
-
Hi,
Thanks for this great plugin.
I am using my own css to style login, front-end profiles, etc. I would like to deregister all styles and scripts from the front-end, including the admin bar, which I am not using either. At the moment, I am using this function, but it doesn’t seem to work. Any ideas as to how to deregister all these css files more efficiently?
add_action( 'wp_print_styles', 'my_deregister_styles', 20 ); function my_deregister_styles() { wp_deregister_style( 'fau-login-theme' ); wp_deregister_style( 'fau-adminbar' ); wp_deregister_style( 'fau-admin-theme' ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Deregistering styles’ is closed to new replies.