---
title: "How to Set Elementor Display Condition Based on Date & Time?"
url: https://theplusaddons.com/docs/set-elementor-display-condition-based-on-date-time/
date: 2023-06-23
modified: 2026-04-11
author: "Aditya Sharma"
description: "When it comes to creating a dynamic and engaging digital experience, it is essential to control what your visitors see and when they see it. Display conditions based on date..."
image: https://theplusaddons.com/wp-content/uploads/2023/06/How-to-Set-Elementor-Display-Condition-Based-on-Date-_-Time_-1024x536.jpg
word_count: 1004
---

# How to Set Elementor Display Condition Based on Date & Time?

## Key Takeaways

- The Plus Addons for Elementor allows users to set display conditions based on date and time.
- Users can enable the Keep HTML option to hide content in the frontend while keeping it in the HTML if the condition is false.
- Setting a display condition for a date range can be done by selecting Current Date and defining an interval, such as 25th Dec to 1st Jan.
- Users can show content on specific days of the week by selecting Day of Week and choosing options like Is or Not for days such as Friday.

When it comes to creating a dynamic and engaging digital experience, it is essential to control what your visitors see and when they see it. Display conditions based on date & time can be especially helpful when you want to show specific content to your visitors based on the current day, week, or time of the day.

When you are using Elementor to create your website, you can use the Display Condition extension of The Plus Addons for Elementor to set different types of display rules based on time and date.

*To check the complete feature overview documentation of The Plus Addons for Elementor Display Condition extension, [click here](/docs/display-conditions-settings-overview/).*

***Requirement  - This extension is a part of The Plus Addons for Elementor, make sure it's installed & activated to enjoy all its powers.***

[LIVE WIDGET LINK](https://theplusaddons.com/elementor-extras/display-conditions/?utm_source=tpae&utm_medium=docs&utm_campaign=text)

To add visibility conditions based on date and time using the Display Condition extension, add any Elementor widget on the page. 

1. Go to **Advanced** > **Display Condition**. 

2. Turn on the **Display Condition** toggle.

Now you’ll see an option called **Keep HTML**. Enabling this will hide the content in the frontend if the condition is false but it will remain in the HTML (DOM).

3. After selecting the appropriate option from the **Display When** dropdown, go to the **Rules** section, here you have to set the actual display condition. You can have one or multiple conditions/rules.

4. To set a date and time based display rule, click on the **Rule** tab. Here you’ll find different options under the **Date and Time **label.

## How to Set Elementor Display Condition Based on Current Date?

This option allows you to set display conditions on your content for a specific date range. This can be very useful if you show special content related to a sale or offer for a certain number of days.

To set display condition for a date range - 

1. Select **Current Date** from the first dropdown under the **Rule** tab.

2. Then in the second dropdown, you have two options - 

**Is** - This will make the statement true.

**Not** - This will make the statement false.

3. In the **In Interval** field, you’ll have to set the date range.

For example, if you want to show a discount offer message related to the Christmas sale, then after selecting **Current Date** from the first dropdown, choose **Is** from the second dropdown. 

Then in the **In Interval** field, choose the date range for example, 25th Dec to 1st Jan.

That will make the message visible from 25th Dec to 1st Jan.

## How to Set Elementor Display Condition Based on Time of Day?

This option allows you to show or hide content after a specific time of the day. This can be used if you display some limited time offer on your website and want to hide it after a certain time automatically.

To set display conditions based on time of day - 

1. Select **Time of Day** from the first dropdown under the **Rule** tab.

2. Then in the second dropdown, you have two options - 

**Is** - This will make the statement true.

**Not** - This will make the statement false.

3. In the **Before** field, you’ll have to set the exact time till the display condition will work.

For example, if you want to hide a discount message after 11:59 pm, then after selecting **Time of Day** from the first dropdown, choose **Is** from the second dropdown.

Then in the Before field, set the time exactly to 23:59 pm.

This will show the message until that time and will be hidden automatically.

If the option is set to **Not** in the second dropdown then this message will show after 23:59 pm.

## How to Set Elementor Display Condition Based on Day of Week?

With this option, you can show content on specific days of the week. This can be handy if you want to show certain contents only on certain days of the week, like showing different food menus on different days of the week. This can save you from a lot of manual work.

To set display conditions for certain days of the week - 

1. Select **Day of Week** from the first dropdown under the **Rule** tab.

2. Then in the second dropdown, you have two options - 

**Is** - This will make the statement true.

**Not** - This will make the statement false.

3. In the **Before** field, select the days you want the display condition to work.

For example, we want to display a special menu every Friday on a restaurant website. To do this after selecting **Day of Week** from the first dropdown, choose **Is** from the second dropdown.

Then in the **Before** field, select Friday from the dropdown.

This will show the content automatically every Friday.

If the option is set to **Not** in the second dropdown then this message will not show on Friday.

> *Note: You can add multiple days together.*

## How to Set Display Condition Based on Time Period Range?

With this option, you can show or hide content for a specific time range of the day. This can be used to show a flash sale offer or something similar.

To set display conditions for specific time range - 

1. Select **Time Range** from the first dropdown under the **Rule** tab.

2. Then in the second dropdown, you have two options - 

**Is** - This will make the statement true.

**Not** - This will make the statement false.

3. In the **Start Time** and **End Time **fields, set the start and end time, respectively.

For example, we want to show a flash sale offer for 2 hours only. To do this, after selecting **Time Range** from the first dropdown, choose **Is** from the second dropdown.

Then, in the Start Time field, select the start time and set the time 2 hours later in the End Time field.

This will show the content for just 2 hrs.

Also, read [How to Set Elementor Display Condition Based on Browser/Site Language](https://theplusaddons.com/docs/set-elementor-display-condition-based-on-browser-site-language/).

## Frequently Asked Questions

**Q: What if my Elementor display condition based on date isn't working?**
A: If your display condition based on date isn't functioning, ensure that you've correctly set the date range in the In Interval field. For example, if you want to show content from December 25th to January 1st, select 'Current Date' and ensure 'Is' is chosen in the second dropdown. If the condition is still not met, double-check that the Display Condition toggle is enabled in the Advanced settings.

**Q: What is the best way to set a time-based display condition for limited offers?**
A: To effectively set a time-based display condition for limited offers, use the 'Time of Day' option. Set the condition to 'Is' and specify the exact time in the Before field, like 23:59, to hide the offer after that time. This ensures that your offer is visible only during the intended hours, creating urgency for visitors.

**Q: How can I set a display condition based on a specific time range?**
A: To set a display condition based on a specific time range, select 'Time Range' in the Rule tab. Choose 'Is' in the second dropdown and define your Start Time and End Time. For example, if you want to display a flash sale for two hours, set the Start Time to 14:00 and the End Time to 16:00. This method allows you to control visibility precisely during the sale period.
