Visibility Triggers - User & Role

When you want to set advanced conditions to Elementor you can choose many trigger that will change the visibility of the element by many situations.

WARNING: actually you can set only one trigger at once. They are not summable. If you set more trigger it will work when at least one of them is verificated.

User & Role

Roles

Select one or more Roles from the current site defined Roles (Administrator, Subscriber, etc.).
For simplicity Visitors (non logged users) will be consider as a Role.
Example:
  • a Private content available only for registered user (like Membership, with multi level of Roles)
  • some particular Notes only for Administrator
  • a Registration form or CTA visible by non logged users

Selected Users

Specific one or more Users, writing one of his unique keys choosing from ID, username or Email.

If multiple users need to separate them by a comma (1,pippo,23,admin@email.ooo,17).

Example:

  • show specific content for some users without group them with a role
  • show a new content only for the Web designer while is working on it

Show content only to current Post Author

User Capabilities

Write the user capability string.

User Field

Select a User Field (standard Field and User Meta field) from all available (ACF and native).

It works only for logged user, for visitor the result is always false.

Second step is select what kind of value expected:

  • Empty, like null or false
  • not empty, valued with any value
  • Less than
  • Greater than
  • Contain
  • Not Contain
  • In Array, check if user field is in a array (also from a comma separated values string)
  • Equal to, exactly a defined value
  • Not Equal to, different from a defined value

Example:

  • show an alert for each User that not complete his phone number soliticy to edit his Profile and add it

Remote IP

Every user are contraddistringued by a unique IP, so you can specify it and limit for single connections.
If multiple IP's need to separate them by comma (8.8.8.8,4.4.4.4,123.255.255.255)
Example:
  • your agency has a Static IP so you can show specific section only for Web designer connected inside your structure
  • your client has a Static IP on his office, so you can preview to him to get confirmation about your new contents before release them as public

Referrer

Enable it and fill the textarea with the site url in format "example.com" (without protocol, port, third level and ur).
If multiple sites write them one for line.
Example:
  • show a specific message to all visitors that come from Facebook

Responsive

Select a specific category of device defined by its size:

  • Desktop and TV
  • Mobile and Tablet
Note: it's not really responsive (as his real definition)!
Contents will be removed from code, so if something will be visibile on Mobile it will not be visible on Desktop.

Will be used native Wordpress detection:
https://codex.wordpress.org/Function_Reference/wp_is_mobile

This detection is limited, but in future release will be expanded with third part libraries.

Example:

  • create a custom interface for Mobile device and another for Desktop in the same template maintaining a lightweight code (usually you simple hide thw unwanted by css but content is duplicated in the html code)
  • limit some advanced function only for Desktop user

Browser

Select one or more Browser from available browser.
Will be used native Wordpress browser detection:

https://codex.wordpress.org/Global_Variables#Browser_Detection_Booleans

This detection is limited, but in future release will be expanded with third part libraries.

Example:
  • some technology not working well on specific Browser (like Flash on Safari or CSS FlexBox on IE), so is better remove it

Still need help? Contact Us Contact Us