BLACK FRIDAY: 50% OFF all Pro plans Code: BLACKFRIDAY50
Pro from $10 a year or $30 lifetime, no code needed: Code: BLACKFRIDAY50
Ends Cyber Monday, 30 Nov. Lock in the price today. Code: BLACKFRIDAY50
Get 50% Off
Guide

Display Conditions Pro

How to set up and style the Display Conditions extension in Elementor.

Display Conditions decides on the server whether a widget, container, section or column is printed. Build a list of conditions about the visitor, date, address, page, custom fields, ACF fields, dynamic tags, shortcodes and WooCommerce, then show or hide the element when they are met. A message or a saved template can take its place.

Part of: Bright Addons Pro. Before you start: Nothing for most conditions. The WooCommerce conditions appear only when WooCommerce is active, and template else content needs a saved template.

Set it up

  1. Select a widget, container, section or column, open the Advanced tab and open the section Bright: Display Conditions.

  2. Switch on Display Conditions and set When the Conditions Are Met to Show this element or Hide this element.

  3. In Conditions, open the first row and pick a type in Condition. Fill in the fields that appear, such as Visitor Is, Roles, Name, Compare and Value.

  4. Add more rows and set Conditions Are Met When to All of them are true (AND) or Any of them is true (OR).

  5. For mixed logic keep AND and add a row of the type OR (start a new group) between the groups. Switch on Reverse (NOT) to turn a row around.

  6. Set Otherwise (Else) Show to A message or A saved template if something should replace the element.

  7. Publish and check the live page. In the editor the element is always visible.

Options

These options are in the Advanced tab of the element.

Bright: Display Conditions

Option What it does
Display Conditions Switches the conditions on for this element.
When the Conditions Are Met Show this element or Hide this element.
Conditions Are Met When All of them are true (AND) or Any of them is true (OR).
Conditions The list of condition rows. Up to 60 rows are checked, and an empty list never hides anything.
Condition The type of the row. Logic: OR (start a new group). Visitor: Login status, User role, Specific users, User field (user meta), Days since registration, Device, Browser, Operating system, Browser language, Cookie. Date and time: Between two dates, Time of day, Day of the week. Address: Address parameter (?key=value), Current address, Came from (referrer). Page: Kind of page, Post type, Specific posts or pages, Category, tag or other term, Post author, Post has. Fields and dynamic data: Custom field (post meta), ACF field, Dynamic tag, Shortcode output. WooCommerce (only when WooCommerce is active): Cart is empty, Cart total, Items in the cart, Product in the cart, Product category in the cart, Customer bought a product, Number of orders of the customer, Total spent by the customer, Current product is, Current product price.
Visitor Is Logged in or Logged out, for Login status.
Roles One or more user roles. The logged in visitor must have one of them.
Devices Desktop, Tablet or Phone, worked out on the server from the browser identification.
Browsers Chrome, Firefox, Safari, Edge, Opera or Samsung Internet.
Systems Windows, macOS, Linux, Android or iOS.
Days The days of the week that count.
From Start of the date range, in the site time zone. Leave one side empty for an open range.
Until End of the date range.
From (24 hour clock) Start of the daily time window, for example 09:00.
Until (24 hour clock) End of the time window. An end before the start runs past midnight.
Pages Front page, Blog page, Any single post or page, Any archive, Category archive, Tag archive, Author archive, Date archive, Search results, 404 page, or Page 2 and later.
Post Types The public post types that count.
The Current Post Has A featured image, A hand written excerpt, Comments, Comments open, Sticky status, A parent page, Child pages or A password.
The Current Product Is On sale, In stock, On backorder, Featured, Virtual, Downloadable, Reviewed, or a simple, variable, external or grouped product.
Name The field name, meta key, cookie name, address parameter or taxonomy (for example category, post_tag, product_cat).
Field Belongs To Source of the ACF field: The current post or page, The logged in user, The author of the post, The category or term being viewed, or An options page.
Dynamic Value A dynamic tag picked with the stack icon.
Shortcode A shortcode such as [my_shortcode]. Its output, without HTML, is compared.
Compare Is, Is not, Contains, Does not contain, Starts with, Ends with, Greater than, Greater than or equal to, Less than, Less than or equal to, Is one of (comma separated), Has a value, Is empty.
Value What to compare with. Lists use commas: IDs for users, posts and products, slugs or IDs for terms.
Reverse (NOT) The condition counts when it is not true.
Otherwise (Else) Show What replaces an element that is not shown: Nothing, A message or A saved template.
Message The else text, with dynamic tag support.
Template A published saved template used as the else content.
Bright Addons Pro

Unlock this and 96 more Pro widgets

One license gives you every Pro widget, all 10 extensions, the Theme Builder and priority support. From $10 a year, with a 14-day money-back guarantee.

Tips

  • Conditions are checked on the server each time the page is built. An element that is not shown is not in the page at all.

  • A page cache serves one saved page to everybody. For visitor conditions (login, role, device, cookie, cart) switch the cache off for that page or split it per visitor.

  • Private fields are never read: names that start with an underscore, protected meta keys and names that look like passwords, tokens, keys or sessions.

  • For lists, checkboxes, relationships and repeaters, Is and Contains look at every item and the number comparisons use the number of items. A true / false field is 1 or empty.

Questions and answers

How do I combine AND and OR?

Choose All of them are true (AND) and put a row of the type OR (start a new group) between the groups. Rows inside a group must all be true, and one true group is enough: (A and B) or (C and D).

Why do the conditions not change anything for visitors?

Usually a page cache from a plugin, the host or a CDN serves the same saved page to everyone. Exclude the page from the cache or split the cache per visitor.

Who can add shortcode and ACF options page conditions?

Only administrators and editors, the people WordPress trusts with unfiltered HTML. When someone else saves the page, new or changed rows of these two kinds are not saved. The same rule protects Custom CSS.

Which ACF fields can be compared?

Any field by its name or field key, from the five sources in Field Belongs To. Without ACF the same row reads the plain custom field.

Need more help?

Check the troubleshooting guide, or contact support with the page address and what you expected to happen.

Troubleshooting guide
All guides