WPIntell

Source evidence

maybe adds !important css rules ?

Conditional Blocks – Advanced Content Visibility Control for WordPress · support · 2020-11-03T10:28:00+00:00

mixedsentiment
mediumseverity
0.84relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 33 rows with source links

15.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
MB Creation resolved
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. 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! 😊 Hi Morgan, Thanks for the quick reply. You could check it live here : 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 👍 I’m encountering a similar thing alongside GenerateBlocks . I’ve some elements not hiding due to CSS specificity overriding the rule.

Comments

3 shown
Morgan Hvidt 2020-11-03T12:00:00+00:00

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! 😊

MB Creation 2020-11-03T12:24:00+00:00

Hi Morgan, Thanks for the quick reply. You could check it live here : 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 2020-12-11T17:32:00+00:00

I’m encountering a similar thing alongside GenerateBlocks . I’ve some elements not hiding due to CSS specificity overriding the rule.