How do I hide a container (or any other widget) from the ODC Studio preview?
I've applied the "hide-on-service-studio" style class to the container I want hidden, but there is no effect. I'm guessing it's because I'm using ODC, not O11.
What should I do instead?
Hi Ryan,
It seems that there is a issue with that class, I tried it myself. Workarounds for this are the following:
1. Override the class with the !important property:
.hide-on-service-studio{
-servicestudio-display: none !important;
}
2. Use other class that uses -servicestudio-display: none, such ass wcag-hide-text .
Thank you - both workarounds work!
Hi @Ryan Huang,
Place the container in the true or false condition in the widget and ensure the boolean value for the widget is opposite to that of the container where you placed.