How To Use The New Condition Options

You will notice a new Conditions option group in the Advanced tab of the Divi settings pop-up. Here, you can add new conditions that will control an element's visibility. If your conditions are met, the element will be displayed for your visitors. If not, it will remain hidden. You can add multiple conditions too create advanced rulesets, and you can choose to display the element based on whether all or one of your conditions are met.

Condition Options Examples

There are so many unique ways that Divi's condition options can be used! Here are just a few examples that highlight three of Divi's many conditions.

Date & Time: Creating A Recurring Promotional Banner

You can use Divi's condition options to display elements based on date and time, and even create recurring content schedules. In this example, we are building a website for a Pizzeria. The Pizzeria likes to celebrate "Pizza Fridays" by running a "buy one Pizza, get one free" promotion every Friday, and they want everyone who visits the website on Fridays to know about it.

To promote the sale, we created a floating promo bar and fixed it to the top of the browser using Divi's position options. Next, we used Divi's animation options to make it slide in when someone visits the page, so they are sure to take notice!

It looks perfect, but we don't want this promo bar to be visible unless it's Friday. That's where Divi's new condition options come in. We can add the "Date & Time" condition and chose to only display this banner on Fridays. Now the website owners can set it and forget it, and just watch their customers get excited about their weekly free pizza.

Logged In Status: Creating A Paid Online Publication

Divi's condition options can be used to display specific content to logged-in users. In this example, we are building a website for an ad-free publication that is supported by paying customers who get exclusive access to certain articles. We need to display the full article to only paying subscribers. Everyone else will get a preview and the option to join. You have probably seen websites like this before, and we can recreate it easily in Divi!

We have set up a clever section that masks the article's content when non-subscribers scroll down the page using a gradient background and Divi's scroll effects. This section blocks the article content and asks visitors to log in or become a subscriber. We only want this section to show up for logged out users. That's where Divi's condition options come in!

We can use the "Logged In Status" condition type and choose to display this element only when the visitor is logged out. We can also use condition options to hide the full content of the article. To put it all together, when you're logged out and not a paying subscriber, the full article content is hidden and a content masking section is displayed. Once a paying subscriber logs in, the full content is revealed and the content mask goes away.

Cart Contents: Capturing Abandoned Carts In WooCommerce

Divi's condition options also come with some unique integrations for WooCommerce. In this example, we want to incentivize conversions by offering a coupon code to customers who have abandoned their cart while it's still filled with products.

We created a floating popup to promote a coupon code, and I used Divi's position options to fix the section to the bottom of the browser. It looks great, but we only want this popup to appear when someone abandons their cart. That's where Divi's

condition options come in!

We can add the "Cart Contents" condition and configure it to display only when products exist in a customer's cart. We also want to make sure that we don't show this coupon code right away, but instead, only show it to customers who have abandoned their cart during checkout. We can use the "Page Visit" condition, and only show this popup to customers who have visited the WooCommerce Checkout page.

Now, when someone adds products to their cart, goes to check out, but gets cold feet before paying, the next time they visit the website they'll see this 20% off coupon code, and we bet that will seal the deal!

All Available Conditions

Divi comes with tons of condition options to choose from. Furthermore, each condition contains different sub-options that expand the of the condition for different scenarios. These conditions can also be combined to create advanced

visibility rulesets.

User Status

Uses status conditions allow you to tailor your website to your visitors based on whether or not they are logged on, and the WordPress user role assigned to their account.

  • Logged In Status - Hide or display elements based on whether or not the current visitors is logged in or logged out.

  • User Role - Hide or display elements based on a user's role. For example, display paid content to specific customers or private content to certain subscribers.

Interaction

Interaction conditions allow you to tailor content to your visitors based on how or when they interact with your website.

  • Date & Time - Hide or display elements based on date and time. Creating recurring schedules or display content for a finite block of time. For example, display event information for an upcoming event, or display a promotional banner only when a sale is active.

  • Page/Post Visit - Hide and display elements to users who have or have not visited specific pages on your website. Retarget visitors on your own website with unique content based on the way the interact with your website.

  • Product Purchase - Hide or display elements to users who have or have not purchased specific products from your WooCommerce store.

  • Cart Contents - Hide or display elements based on whether or not a user has items in their WooCommerce cart. Target all products or specific products in your store.

  • Number Of Views - Hide or display an element based on how many times it has been viewed by a visitor. Create limited-time content that expires after a certain amount of time based on visitor engagement.

Device

Device conditions allow you to tailor your website to our visitors based on the software they are using to browse your website.

  • Browser - Hide or display elements to users based on the type of browser they are using. Tailor your design to specific browsers handle the unique ways certain browsers deal with CSS or offer content that is specific to certain browsers (like browser extensions).

  • Operating System - Hide or display elements to users based on which operating system they are using. For example, you could create download links to your software that provides the user with the correct installation file.

  • Cookie - Hide or display elements based on the existence or the values of certain cookies stored in the visitor's browser. This gives you lots of freedom to customize pages for specific users based on how they have interacted with your website and its plugins.

Post Information

Post Information conditions allow you to display elements based on the post's meta information, such as it's category, tag, author and type. These conditions can be combined with Theme Builder template assignments, giving you two layers of

conditions and the ability to create more dynamic layouts.

  • Post Type - Hide or display elements on posts of a specific type.

  • Post Category - Hide or display elements on posts within specific categories.

  • Post Tag - Hide or display elements on posts with specific tags.

  • Author - Hide or display elements on posts written by specific authors.

Website Location

Website Location conditions allow you to display elements based on where the page exists on your website. These conditions can be combined with Theme Builder template assignments, giving you two layers of conditions and the ability to

create more dynamic layouts.

  • Tag Page - Hide or display elements on specific tag pages.

  • Category Page - Hide or display elements on specific category pages.

  • Date Archive - Hide or display elements on specific date archives pages.

  • Search Results - Hide or display elements on search result pages based on the terms being searched by the visitor.

  • Post Types - Hide or display elements on specific post types.

  • Posts/Pages - Hide or display elements on specific posts or pages that you select from a list.

Did this answer your question?