Skip to main content

Displaying or hiding the content by current day of the week

Updated over a year ago

If you have Elementor Pro and JetEngine you achieve it like this

Where "N" represents the day of the week, refer to this guide for more details.

As a workaround, you can use custom code, which can be found here: Custom Code

Add the code to the functions.php file of your child theme or use the Code Snippets plugin.

Ensure that you set up the format correctly according to this guide

The "w" parameter represents the day of the week, where 0 = Sunday. For example, Wednesday is represented by 3.

If you need to display an item on Wednesday, the setting should look like this after adding the code:

Did this answer your question?