This Pro tutorial provides the steps to display elements in Bricks conditionally based on the specified day of the week.
This could be used for example, to automatically display a notice only on Fridays.
Go to Settings → General and set the Timezone to the city where your site/business is based at.
Leave the Week Starts On at the default Monday. This is not mandatory since we are going to set the same in code. So it's just a way to make sure there is consistency.
Let's add a custom function that takes a 3-letter string of the day (like
Fri) as the input and returns true if today is that specified day.
Add this in your child theme's
This is a Pro members-only tutorial.
To get full access, login below or sign up for a Pro Account