To compliment the new element conditions feature, it would be useful to be able to hide elements - for the builder only, directly from the conditions options.
Use case: users are going to be making multiple versions of elements, to display for different conditions and will need a way to make sure they’re not all visible at once while working on the design.
Options missing from the comparison operand probably will be “Does not contain” and etc. I am looking at hiding some sections if the ACF field doesn’t contain any data at all. I don’t think there is anyway to do this with the limited options available.
Hello. It would just be useful to quickly hide elements in the builder without affecting the frontend. I know there is a workaround, register the css only for the constructor and hide through the class only in the constructor. But I would like to have a small eye button that would switch the display only in the constructor.
I added a CSS solution in the meantime, lightly borrowed from ACSS “hidden-accessible”. I registered the CSS in WPCodeBox “Header After Builders”
We need this feature so bad. In my last project I need 3-4 CTA buttons placed in header conditionally for different pages. I have them shown all in builder and I can’t hide them. In Oxygen we have an option to Show/Hide element in builder based on conditions. It’s so helpful and powerful feature.
Or can we at least have an “eye” button in Structure pane to hide elements only in builder?
This is especially useful if you’re using one template for several languages and displaying elements conditionally, depending on the current language. Oxygen has this hide-in-builder option. Please consider implementing it, @thomas