Limit Built-in Admin CSS Styles
-
I’m building a plugin using a bootstrap based third-party css library for the admin UI. I’m loading the default WordPress admin styles so the toolbar, navigation, etc still work fine. The default styles also seem to style many generic tags so I’m having issues with WordPress admin styles modifying the elements I’m styling with the third-party library, effectively breaking it.
I can override the default WP admin styles in my own custom style sheet, but that is becoming a hassle to do for every property for every styled element. So my question is, is there a typical way around this that developers use? Ideally I’d like to load the styles for the admin bar, admin navigation, and main admin page structure, but none of the rest like form elements, the card class, etc.
Thanks for any assistance.
- The topic ‘Limit Built-in Admin CSS Styles’ is closed to new replies.