Support » Plugin: Wp-Pro-Quiz » Very poor engineering

  • The developer uses !important on (literally) every single one of his css selectors.

    The very basis of not using !important unless absolutely necessary is ingrained in the mind of any web developer so early in his/her career that one can only assume similar mistakes are also made throughout the rest of the codebase.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xeno010

    (@xeno010)

    Make it better! It is open source.

    I hate !important too but this is (unfortunately) not possible.

    WordPress has more than 10000+ different themes. In all should Wp-Pro-Quiz look alike. This is only possible with !important. But I add a Style-Manager in the next version, with different style (and a clean version)

    What part should alike in all themes? That answer sounds like it is the reason for the problem. You are building the plugin to enforce theming? That’s not a good goal at all! Plugin pages should inherit the styles of the active theme. That’s the whole point of theme/plugin separation. And to avoid using !important in places where you definitely want some styling, where the layout would fall apart otherwise… just use specificity. If you have organized classes that are specific enough, no theme will override them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Very poor engineering’ is closed to new replies.