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
Pro extension

Display Conditions for Elementor Pro

Show or hide any Elementor element with if / else rules

Overview

What Display Conditions does

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.

Features

What it can do

  • Visitor conditions: login status, user role, specific users, user fields and days since registration.

  • Device, browser, operating system, browser language and cookie conditions, read on the server.

  • Date and time conditions: between two dates, time of day and day of the week.

  • Address conditions: an address parameter, the current address and the referrer.

  • Page conditions: kind of page, post type, specific posts, terms, post author and post properties.

  • Custom fields, ACF fields, dynamic tags and shortcode output, with 13 comparison operators.

  • Ten WooCommerce conditions for the cart, the customer and the current product.

  • AND, OR, groups and NOT, plus a message or saved template as else content.

Use cases

When to use it

Members only content

Show a container only to logged in visitors with a chosen role, and a log in message to everybody else.

Timed offers

Show a banner between two dates, or only during opening hours.

Campaign content

Show a block only when the address has a parameter such as ?ref=newsletter.

Smarter shop pages

Show a free shipping note when the cart total passes an amount, or a badge when the current product is on sale.

Setup

How to set it up

What you need: Nothing for most conditions. The WooCommerce conditions appear only when WooCommerce is active, and template else content needs a saved template.

  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.

FAQ

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.

Bright Addons Pro

Get Display Conditions with Bright Addons Pro

Bright Addons Pro has 97 Pro widgets plus all 53 free widgets, 10 extensions, a Theme Builder and 32 dynamic tags. From $10 a year, with a 14-day money-back guarantee.