I'm developing a widget for wp elementor as a plugin. Now my widget front view css and the theme front view css are in conflict. Right now as a developer how can I avoid wp plugin front view css and theme front view css conflict?

  • 3
    There’s no magic trick. You just need to write your CSS rules with appropriate specificity so that rules you want to be overwritten can be while important CSS is not overwritten. Jan 18, 2022 at 7:10

1 Answer 1


You can/should prefix all your classes. That way you have very limited chance to have conflicting classes, which can cause unexpected behaviour on the front-end. So, instead of .container, you can use .mypluginprefix_container.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.