Home Forums Newsletter Plugin Support Too many !important rules in the css

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27676
    MKJ
    Participant

    Hallo,

    we’ve just had the problem that we couldn’t override some css from the newsletter style.css. It turned out, that you use the !important rule a lot. Please, could you change that? A plugin stylesheet should never use !important, since it makes it hard to override in the main stylesheet. (I know that I can use the custom css section for that). In addition to that, it would be great to have a checkbox for deactivating the plugins css styles This should be the gold standard for all plugin developers. I know that I can deregister styles in the functions.php, but this would be a nice feature.

    Thanks,

    Mike

    #27986
    Stefano
    Keymaster

    You can add a filter in your theme to deactivate the css. Check the docs in this site on the form style panel. Thank you.

    #28361
    MKJ
    Participant

    Thanks. Of course, I know how to set a filter to deregister styles. However, it is best practice to implement that in the plugin core. Apart from that, I really can’t see any reason to use so many !important rules in the plugin css in the first place. Don’t get me wrong. I really like your plugin. Consider it a friendly suggestion.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.