Hi everyone,
On every element you’ll find a new Conditions control under the Customize section which will let you determine if the element should be output.
- Elements always output if there are no conditions set
- Elements will not output if you have conditions and they fail
- Elements will always output in the preview (so you can find them) regardless of the condition being successful or not. This is something we’re aware could use some refinement. We will probably add a toggle somewhere that hides/shows elements like this based on their condition.
You can see some conditions in action by trying out the WooCommerce starter templates. There is plenty of room to add more conditions. Let us know any other condition types you that you think would be helpful in sites that you’re building!
@Misho, I’ve not fleshed it out yet but I’m thinking this is where we could do a condition like this:
If [membership level=1]YES[/membership]
contains YES
Effectively you could hide elements based on shortcode content that way (like your shortcode wrapper idea) without introducing new levels into the rendering system.