The builderInteractions
Visibility conditions
Show or hide a block based on the visitor, the device, the language, and more.
A visibility condition shows or hides a block depending on a signal. Set one or more conditions on a block, and it appears only when they are met.
Conditions can test things like:
- whether the visitor is logged in, and their role,
- the device or screen size,
- the language of the page, for Polylang or WPML sites,
- and other context you choose.
Combine conditions with and/or to build the rule you need. Language and the other server-known signals are checked before the page is sent, so hidden content is never shipped to the browser at all.