A Plugin i use in WordPress has a css stylesheet which I only need in the frontend but not in the wordpress backend. (There it causes a small bug)
How can I prevent the stylesheet from loading in the backend?
Or the other way around, how can I make a stylsheet load only in the frontend?
Thanks for your help!
2
Answers
With Simple Custom CSS and JS plugin by SilkyPress.com the CSS can be set to appear In Frontend, In Admin or On Login Page separately.
Check slug of imported style and use this solution
Change
wp-admin
to your slughttps://developer.wordpress.org/reference/functions/wp_deregister_style/