Plugin Development — Override theme CSS
-
I’m currently assisting in the development of a plugin that my company is building and I’m running into an issue with the css inheritance from themes. The plugin dynamically builds several new artificial pages which are linked to throughout different widgets and other plugin components.
My problem is that with several themes, the elements in the pages built by the plugin (i.e. unordered lists, tables, anchors, basically any standard html element) are getting styled by the theme stylesheet, which to a degree is okay, but the layout of the plugin elements is being compromised. On a theme-by-theme basis I have been able to correct these issues, but I have already seen dozens of new themes with similar issues that have not yet been resolved.
Have any other plugin developers run into this? If so, how have you resolved it? I may just need to build a reset.css that does more than just reset margin and padding, and actually reset each html element back to its browser default styling.
The topic ‘Plugin Development — Override theme CSS’ is closed to new replies.