Title: maybe adds !important css rules ?
Last modified: November 3, 2020

---

# maybe adds !important css rules ?

 *  Resolved [MB Creation](https://wordpress.org/support/users/mbcreation/)
 * (@mbcreation)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/maybe-adds-important-css-rules/)
 * Hi,
 * The plugin looks great. However it looks like CSS rules might be overruled by
   plugins like “autoptimize” or any css minifier. (becouse loading order or mixing
   files.)
 * Maybe you should consider “!important” rules. Or even better, server side rendering?
 * Thanks for your time.
    Benoit.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Morgan Hvidt](https://wordpress.org/support/users/morganhvidt/)
 * (@morganhvidt)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/maybe-adds-important-css-rules/#post-13615156)
 * Hi Benoit,
 * Thank you for letting me know. I’ll definitely look at adding that for those 
   edge cases. Can you confirm that adding !important rules solved it on your end
   and it’s not another issue?
 * Just an FYI: depending on the conditions Conditional Blocks will fully remove
   blocks from the server-side. However, when it comes to the screen size conditions
   blocks those are hidden using CSS, so the user can resize the browser as they
   need and still see the correct blocks.
 * Let me know if you have any additional details. e.g if happens with a specific
   theme + autoptimize.
 * Thanks! 😊
 *  Thread Starter [MB Creation](https://wordpress.org/support/users/mbcreation/)
 * (@mbcreation)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/maybe-adds-important-css-rules/#post-13615260)
 * Hi Morgan,
 * Thanks for the quick reply.
    You could check it live here : [https://www.marshalltravel.fr/](https://www.marshalltravel.fr/)
   Added !important did the trick. I’m using storefront (with a child) & autoptimize.
   I was a bit in a rush so i didn’t dig more than that for now. Good news if you
   do some work server side also 👍
 *  [uamv](https://wordpress.org/support/users/uamv/)
 * (@uamv)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/maybe-adds-important-css-rules/#post-13777956)
 * I’m encountering a similar thing alongside GenerateBlocks[](https://generateblocks.com/).
   I’ve some elements not hiding due to CSS specificity overriding the rule.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘maybe adds !important css rules ?’ is closed to new replies.

 * ![](https://ps.w.org/conditional-blocks/assets/icon.svg?rev=3115006)
 * [Conditional Blocks - Advanced Content Visibility Control for WordPress](https://wordpress.org/plugins/conditional-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/conditional-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/conditional-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/conditional-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conditional-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conditional-blocks/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [uamv](https://wordpress.org/support/users/uamv/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/maybe-adds-important-css-rules/#post-13777956)
 * Status: resolved