Phox Conditions
Date, day, time and opening hours conditions for your page builder. Set a rule up once, give it a name, then pick it in the builder's own conditions to show or hide any element or template at exactly the right moment.
Overview
Phox Conditions adds four kinds of time-based rule to the condition system your builder already has. You define each rule once under Settings → Phox Conditions, give it a label such as Christmas or Shop, and it appears in the builder's conditions picker under a Phox Conditions group.
A seasonal banner, a "we're closed for the bank holiday" notice, a lunchtime offer, a different header after hours: each one is a condition you pick by name, not code you write.
Date ranges
Between two dates, once or every year. Ranges that cross New Year work.
Day patterns
Days of the week and months, or a pattern like the last Friday of each quarter.
Time ranges
A daily window, in 15 minute steps. Windows that cross midnight are supported.
Opening hours
A weekly schedule with split hours, closed dates and UK bank holidays.
Open now message
A shortcode that prints "Open now · closes 17:00" or "Closed · opens Monday 09:00".
Native conditions
Works in element and template conditions in every supported builder, alongside the built-in ones.
Breakdance and Oxygen 6: element display conditions and template conditions. Bricks: element conditions, and a Phox condition field on every template condition row. Elementor Pro: the native Display Conditions picker, plus a Phox Conditions setting on Theme Builder templates and popups. Elementor (free): a Phox Conditions section in each element's Advanced tab.
Requirements & installation
| Requirement | Minimum |
|---|---|
| WordPress | A current version of WordPress. |
| PHP | 7.4 or newer |
| Builder | Breakdance, Oxygen 6, Bricks or Elementor (free or Pro). Install it on a site with any of them; the integrations for builders that are not active simply never run. |
| UK bank holidays | Optional. The site must be able to reach www.gov.uk to download the bank holiday list. |
- Install the plugin. In WordPress go to Plugins → Add New → Upload Plugin, choose the Phox Conditions zip from your account and click Install Now.
- Activate it. A Phox Conditions item appears under Settings, and the plugin list gets Settings and Licence links.
- Add your licence key on the Licence tab for automatic updates. See Licence.
- Check your timezone. Under Settings → General, pick your city (for example London) rather than a UTC offset, so conditions follow summer time. See Site time & timezone.
The settings screen and every save on it require the Administrator capability (manage_options). On the front end the plugin only checks conditions; it adds no scripts or styles to your pages.
Quick start
A Christmas banner that shows itself every December and hides itself again on Boxing Day, in five minutes.
- Open the settings. Go to Settings → Phox Conditions. You start on the Date ranges tab.
- Add a date range. Press + Add date range, type the label
Christmas, choose a start of 1 December and an end of 26 December (any year), and leave Repeats on Every year. - Save. Press Save conditions. The row now shows an Active now or Inactive badge so you can see straight away whether it is on.
- Use it in the builder. Open the page, select the banner, add a condition and choose Phox Conditions → Phox Date Range, then pick
Christmas. In Bricks and Elementor the option reads is active; in Breakdance and Oxygen it reads equals. The steps for each builder are under Using conditions. - Check it. View the page while logged out. If it does not change when you expect, see Caching.
The settings screen
Everything lives on one screen, Settings → Phox Conditions, with tabs down the side:
| Tab | What it is for |
|---|---|
| Date ranges | Between two dates, once or every year. |
| Day patterns | Days of the week and months, or an "Nth weekday" pattern. In the builder these are called Day/Month. |
| Time ranges | Daily time windows. |
| Opening hours | Weekly schedules with closed dates and bank holidays. |
| Active now | Every saved condition with a one-line summary and whether it is active at this moment, checked against your site time. |
| Licence | Activate or deactivate your key. |
Each condition tab shows a count beside its name. The header shows how many of your conditions are active right now and whether the licence is active. Every saved row carries a live Active now or Inactive badge.
Press Save conditions on any tab to save all four tabs at once. If you try to leave with unsaved changes, the page warns you first. A row missing its label or dates is highlighted rather than silently dropped.
Condition typesDate ranges
A date range is active from the start of its first day to the end of its last day, both days included.
| Field | What it does |
|---|---|
| Label | The name you pick in the builder, for example Christmas or Summer sale 2026. |
| Start / End | Chosen with the date picker, stored as YYYY-MM-DD. |
| Repeats | Every year uses only the day and month, so the range comes round again each year. One-off uses the full dates and never comes back. |
Ranges that cross New Year
A yearly range from 20 December to 5 January is active on both sides of New Year: from 20 December to 31 December, and from 1 January to 5 January. You do not need two ranges.
For a yearly range only the day and month matter, so it does not matter which year the date picker showed when you chose the dates. For a one-off range the year matters, and a range whose end is before its start never matches.
Day patterns
A day pattern is active for the whole of a matching day. There are two kinds, chosen with Pattern type.
Days and months
Tick any days of the week and any months. The pattern is active on any ticked day, or during any ticked month.
| Ticked | Active |
|---|---|
| Sat, Sun | Every weekend. |
| Dec | Every day in December. |
| Mon, Dec | Every Monday of the year, and every day in December. |
Ticking Monday and December gives you every Monday plus all of December, not just the Mondays in December. For "Mondays in December", make two day patterns (one with Monday, one with December) and require both in the builder. See Combining conditions.
Nth weekday
Pick Which (first, second, third, fourth or last), a Day, and Of each month, quarter or year.
| Of each | How it counts | Example |
|---|---|---|
| Month | Within every month. | First Monday of the month: a monthly newsletter sign-up push. |
| Quarter | First to fourth count from the start of the quarter's first month (January, April, July, October). Last counts back from the end of its last month (March, June, September, December). | Last Friday of each quarter: a quarter-end offer. |
| Year | First to fourth count from the start of January. Last is the last one in December. | Last Friday of the year: a year-end message. |
Time ranges
A time range is a window that applies every day, chosen in 15 minute steps with From and To.
- The end minute is included. 09:00 to 17:00 is active until 17:00 has passed, so it switches off at 17:01.
- Windows can cross midnight. 22:00 to 02:00 is active late in the evening and in the small hours.
- Every day means every day. To limit a window to weekdays, combine it with a day pattern, or use Opening hours, which has a schedule for each day.
Opening hours
An opening hours schedule is active while you are open. It is the condition to use for "open now" content: a call button only during office hours, a "back tomorrow" notice in the evening, a live chat link while staff are in.
The weekly schedule
Each day has two pairs of times. A new schedule starts at Monday to Friday, 09:00 to 17:00.
- Closed days: leave the day's times as —.
- Split hours: use the second pair for a lunch break, for example 09:00 to 12:30 and 13:30 to 17:00.
- Overnight hours: a close time earlier than the open time runs past midnight. Friday 18:00 to 02:00 stays open until 2am on Saturday.
- Open all day: 00:00 to 00:00 is open for the whole day. Back-to-back 24 hour days join up into one long opening.
- Close times are exclusive. 09:00 to 17:00 is closed at 17:00 exactly.
Closed dates
One entry per line:
| Format | Example | Closed |
|---|---|---|
| A date | 2026-12-24 | That one day. |
| A range | 2026-12-24 to 2026-12-27 | Every day in the range, both ends included. |
| Every year | 12-25 | 25 December, every year. |
| Every year, a range | 12-24 to 12-26 | 24 to 26 December, every year. Ranges across New Year work. |
UK bank holidays
Set Closed on UK bank holidays to England and Wales, Scotland or Northern Ireland and the schedule closes on that region's bank holidays automatically. The list comes from GOV.UK and is refreshed once a day in the background, never while a visitor is loading a page. The Opening hours tab shows when it was last updated.
The bank holiday list is downloaded the first time it is needed, by the daily background task or when an administrator next opens wp-admin. If the tab says the list has not been downloaded yet, reload it after a minute. If it never arrives, the site cannot reach www.gov.uk; add the dates as closed dates instead.
Once a schedule is saved, its row shows a live status line such as Open now · closes 17:00 together with the shortcode to display it. See Open now shortcode.
Using conditionsBreakdance & Oxygen 6
Phox Conditions registers four conditions with the Breakdance conditions system, which Oxygen 6 shares. They appear in a Phox Conditions category wherever you add a condition: on an element's display conditions, and on a template's conditions (headers, footers, global blocks, popups and other templates).
| Condition | Picks from |
|---|---|
| Phox Date Range | Your date ranges |
| Phox Day/Month | Your day patterns |
| Phox Time | Your time ranges |
| Phox Opening Hours | Your opening hours schedules |
Choose equals to show the element while any of the selected conditions is active, or not equals to show it while none of them are. You can select more than one.
Add Phox Opening Hours → not equals → Shop to a "We're closed, leave us a message" section. It shows itself whenever the shop is shut, including bank holidays and closed dates.
Bricks
Element conditions
Open an element's Conditions and add a condition. The four Phox conditions are in their own Phox Conditions group. Choose is active or is not active, then pick one or more of your saved conditions. If the list is empty, nothing of that type has been set up yet.
Template conditions
In a template's settings, every template condition row gets two extra fields once you have chosen what the row applies to:
| Field | What it does |
|---|---|
| Phox condition | One or more saved conditions of any type, listed as Date Range: Christmas, Opening Hours: Shop and so on. Left empty, the row behaves exactly as before. |
| Phox condition is | Active (the row applies while any selected condition is active) or Not active (while none are). |
This works for headers, footers, content templates, popups and section hooks, and the row's Exclude setting still works.
Seasonal templates win
When two templates are equally specific, a row with an active Phox condition wins. Set a Christmas header to Entire website with the Phox condition Date Range: Christmas, leave your normal header on Entire website with no Phox condition, and the Christmas header takes over for the season, then hands back by itself.
Phox conditions on templates are applied on the front end only. Inside the Bricks builder and in wp-admin you always see and edit the template's real settings.
Elementor
Elementor Pro: Display Conditions
Open an element's Display Conditions. The four Phox conditions are in a Phox Conditions group. Choose Is active or Is not active and pick your saved conditions. This works for widgets and containers, including V4 elements.
Theme Builder templates and popups
Open the template's Settings tab and find the Phox Conditions section:
- Phox conditions: one or more saved conditions of any type.
- Apply while: Any selected is active or None selected are active.
The template's own Display Conditions still decide where it applies. The Phox setting decides when. While the Phox setting does not match, the template drops out completely, as if it were not published.
Elementor without Pro
On free Elementor, or Pro without Display Conditions, each widget, container, section and column gets a Phox Conditions section in its Advanced tab with the same two settings. The element is hidden on the front end while the setting does not match. In the editor it always shows, so you can keep working on it.
Elements with Phox Conditions in the Advanced tab are left out of Elementor's element cache, so they are always checked fresh when the page is built. Settings added here keep working if you upgrade to Pro later.
Open now shortcode
Show the live status of an opening hours schedule anywhere a shortcode works, in any builder:
[phox_opening_status name="Shop"]
It prints Open now · closes 17:00 while you are open, and Closed · opens Monday 09:00 while you are closed. The time is written as just the time for today, tomorrow 09:00, the day name within the week, or a short date further ahead.
| Attribute | Default | Notes |
|---|---|---|
name | The first schedule | The schedule's label. Not case sensitive. An unknown name prints nothing. |
open | Open now · closes {time} | Shown while open. {time} is the closing time. |
closed | Closed · opens {time} | Shown while closed. {time} is the next opening time. |
open_always | Open now | Shown while open with no closing time in the next two weeks (for example, open 24 hours). |
closed_long | Closed | Shown while closed with no opening time in the next two weeks. |
time_format | H:i | A PHP date format for the times, such as g:ia for 5:00pm. |
[phox_opening_status name="Shop" open="We're open until {time}" closed="Back {time}" time_format="g:ia"]
The output is a <span class="phox-opening-status"> with an extra class of is-open or is-closed, so you can colour it:
.phox-opening-status.is-open { color: #15803d; }
.phox-opening-status.is-closed { color: #b91c1c; }
Using conditions
Combining conditions
Each Phox condition picks one or more saved rules of the same type. Selecting several means any of them: Phox Date Range with Christmas and Black Friday selected is active during either.
To require two things at once, add two conditions to the element and have the builder match all of them, the way you combine its built-in conditions. Some useful pairings:
| You want | Combine |
|---|---|
| Mondays in December | A day pattern with Monday, and a day pattern with December. |
| A lunchtime offer on weekdays only | A time range of 12:00 to 14:00, and a day pattern with Monday to Friday. |
| A sale banner only while the shop is open | A date range for the sale, and an opening hours schedule. |
| A message for logged-in customers at Christmas | A Phox date range, and the builder's own logged-in condition. |
Site time & timezone
Every condition is checked against your site's time, set under Settings → General → Timezone, not the server clock and not the visitor's.
Choose a city there, such as London, rather than UTC+0. With a city, WordPress knows when the clocks change, and 09:00 stays 09:00 all year round. With a fixed offset or UTC, conditions ignore summer time and run an hour out for half the year. The Active now tab shows the time being used and warns you if the site is set to UTC.
Earlier versions checked conditions in UTC. From 1.2.0 they use your site timezone. If you moved your times by an hour to make up for British Summer Time, move them back.
Caching
Conditions are checked when WordPress builds the page. A page cache (a caching plugin, Varnish, Cloudflare or your host's cache) stores the finished page and hands the same copy to every visitor until it expires or is cleared. A page cached at 16:55 can still show "Open now" at 17:30.
How to handle it depends on how precise the timing needs to be:
- Date ranges and day patterns change at midnight. Clearing the cache once a day, shortly after midnight, is enough. Many caching plugins can do this on a schedule.
- Time ranges and opening hours can change at any minute. Give the pages that use them a short cache lifetime, or exclude them from the page cache.
- Phox Conditions does not clear caches itself. When you save a condition, clear the cache for the pages that use it if you want the change to show straight away.
Logged-in administrators usually bypass the cache, so check your pages in a private window to see what visitors see.
How it worksLabels
Builders store the label of the condition you picked, not a hidden ID. That keeps things simple, but has two consequences:
- Renaming a condition disconnects it. If you change
XmastoChristmas, every element and template that usedXmasneeds to be pointed at the new name. - Labels should be unique within a type. Two date ranges both called
Saleare treated as one: the condition is active while either is.
You can change a condition's dates, days or times as often as you like without touching the builder. Everything that uses it follows the new settings.
How it worksThe Active now tab
The Active now tab lists every saved condition, grouped by type, with a plain-English summary and whether it is active at this moment. For example:
| Condition | Summary |
|---|---|
| Christmas | 1 Dec to 26 Dec, every year |
| Quarter end | Last Friday, quarterly |
| Lunchtime | 12:00 to 14:00 |
| Shop | Open now · closes 17:00 · Mon–Fri 09:00–17:00 · Sat 10:00–14:00 |
The top of the tab shows the exact date, time and timezone the checks are using. If a condition looks wrong here, the problem is in its settings or the timezone. If it looks right here but wrong on the page, the problem is caching or the builder condition.
HelpLicence
An active licence turns on automatic updates. Your conditions keep working without one.
- Find your key in your account on phox-elements.com.
- Open the Licence tab under Settings → Phox Conditions, paste the key and press Activate licence.
- The header changes to Licence active. To move the licence to another site, press Deactivate licence first.
A bundle has its own key, which cannot be activated in a plugin. In your account, open the bundle and copy the key listed for Phox Conditions. The licence tab tells you if you have pasted a bundle key or a key for another product.
Developer notes
Testing at a different time
Every check reads the time through one filter, so you can pin the clock on a staging site to see how a page will look on another date:
add_filter('phox_conditions/now', function () {
return new DateTimeImmutable('2026-12-24 10:30', wp_timezone());
});
Remove it when you are done. It affects every condition, the Active now tab and the shortcode.
Where settings are stored
All conditions are kept in one option, phox_conditions, so they travel with a normal database migration. The downloaded bank holidays are in phox_conditions_bank_holidays. Deactivating the plugin leaves both in place.
Troubleshooting
A condition does not switch when it should
- Open the Active now tab. If the condition shows the wrong state, check its dates or times and the site time shown at the top.
- If the time at the top is an hour out, set your timezone to a city under Settings → General.
- If the tab is right but the page is wrong, clear your page cache and check again in a private window. See Caching.
My condition is not in the builder's list
Make sure it has been saved (the tab count includes it), then reload the builder: the list is read when the builder loads. If you renamed the condition, pick the new name.
An element disappeared after I renamed a condition
The element is still looking for the old label. Edit its condition and select the new name. See Labels.
Bank holidays are not being applied
Check the note at the top of the Opening hours tab. If the list has never been downloaded, your server cannot reach www.gov.uk, often because of a firewall. Add the dates under Closed dates instead.
A Bricks template does not take over
Check that the row has something chosen in its main condition: the Phox fields only appear after that. Then check Phox condition is is set the way you expect, and that no other template has a more specific row (a single page beats Entire website).
HelpFAQ
Does it use the visitor's time or my time?
Your site's time. Everyone sees the same thing at the same moment, wherever they are.
Can I show something on one particular day only?
Yes. Make a one-off date range with the same start and end date.
Does it slow my pages down?
No. Each condition is checked once per page with simple date comparisons, and nothing is fetched from outside the site while a visitor is waiting.
Does it work outside the UK?
Yes. Everything except the automatic bank holidays works anywhere. For other countries, add your public holidays as closed dates; the MM-DD format repeats fixed holidays every year.
Can a condition hide content from search engines?
Hidden content is not in the page at all, for search engines as well as visitors. Keep anything that matters for SEO outside time-based conditions.
Does deactivating the plugin delete my conditions?
No. They stay saved and come back when you reactivate it. While the plugin is inactive, the builders cannot check Phox conditions.
HelpChangelog
1.2.1
Fixed
- Licence activation could report success when the key had not actually been activated. Clear messages are now shown for bundle keys, keys for other products, unexpected server responses and other activation errors.
1.2.0
New
- Elementor support: Phox conditions in Elementor Pro's Display Conditions, a Phox Conditions setting for Theme Builder templates and popups, and a Phox Conditions section in each element's Advanced tab on free Elementor. Works with Elementor's element caching.
- Opening hours condition type for every builder: weekly schedules with split, overnight and 24 hour periods, closed dates, and automatic UK bank holidays from GOV.UK.
- The
[phox_opening_status]shortcode, with customisable wording and time format. - The Active now tab shows the site time and timezone, and warns if the site is set to UTC.
Fixed
- Conditions now use your site timezone instead of UTC. During British Summer Time they switch an hour earlier than before; if you adjusted times to compensate, change them back.
- Yearly date ranges that cross New Year now match correctly.
1.1.0
New
- Bricks support: element conditions, and an optional Phox condition on every template condition row, with active / not active and Exclude support.
- Confirmed compatible with Oxygen 6.
- Redesigned settings page with sidebar tabs, an Active now overview and live status badges. The licence moved into its own tab.
Improved
- Conditions missing a label or dates are highlighted instead of being silently dropped on save.
- A warning when leaving the settings page with unsaved changes.
- The date picker is restyled and no longer loads a stylesheet from an outside site.
Fixed
- Deleting the last remaining condition did not save.
- Adding a condition after removing another could overwrite an existing one.
- Settings page styles and scripts could stay cached after an update.
- Licence activation and deactivation now check user permissions.
1.0.0
- Initial release: Date Range, Day/Month and Time conditions for Breakdance.
