🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Evergreen Countdown Timer for Bricks Builder Setup Guide

Updated 8 min read Bricks Builder Fields & Inputs
On this page
  1. Overview
  2. Requirements
  3. Installation and license
  4. Add a countdown
  5. Timer settings
  6. Evergreen
  7. Server-side anchor
  8. Fixed date and time
  9. Daily deadline
  10. Evergreen, restart after expiry
  11. Display
  12. Labels and translation
  13. When the timer ends
  14. Styling
  15. Query loops and several timers
  16. Accessibility
  17. Performance
  18. For developers
  19. FAQ
  20. Does it work with caching and CDNs?
  21. My fixed date shows the wrong time.
  22. How do I test an evergreen timer again?
  23. The element is missing from the panel.

Overview

Evergreen Countdown Timer for Bricks Builder adds one element, Evergreen Countdown, to the Bricks elements panel (category GravityExtra). It counts down to a deadline and, when the time is up, can change the page: hide or show other elements, show a message, disable an add-to-cart button or redirect the visitor.

There are four countdown types:

  • Evergreen (per visitor) – every visitor gets their own deadline that starts on their first visit (for example 48 hours). Reloading, opening a new tab or coming back next week does not restart it.
  • Fixed date and time – one deadline for everybody, chosen with the date picker or taken from a custom field / dynamic data tag.
  • Daily deadline – ends at the same time every day (for example “order by 15:00 for same-day dispatch”), optionally only on chosen weekdays.
  • Evergreen, restart after expiry – like evergreen, but after it ends the visitor sees the ended state for a number of hours and then gets a fresh countdown.

Requirements

  • WordPress 6.2 or newer, PHP 7.4 or newer.
  • Bricks Builder as the active theme (or a Bricks child theme). Without Bricks the plugin shows a notice and does nothing else.

Installation and license

  1. Go to Plugins → Add New → Upload Plugin, upload gravityextra-bricks-evergreen-countdown-addon.zip and activate it.
  2. Open Bricks → Evergreen Countdown, paste your license key from your GravityExtra account and click Activate License.

Without an active license the element keeps working. The server-side anchor and the “restart after expiry” type are paused (the timer falls back to browser storage and a one-time evergreen deadline) and updates are not delivered.

Add a countdown

  1. Edit a page or template with Bricks.
  2. Search the elements panel for Evergreen Countdown (or “countdown”, “timer”, “deadline”) and drag it onto the canvas.
  3. Choose the Countdown type in the Timer group and set the duration or date.
  4. Pick a layout in Display, then style it in the Style tab.
  5. Set what happens When the timer ends and save.

The canvas shows a static preview (it does not tick, and expiry actions never run in the builder). Tick Display → Preview the expired state in the builder to see and style the end message.

Timer settings

Evergreen

  • Days / Hours / Minutes / Seconds – the length of each visitor’s countdown (up to 400 days).
  • Campaign ID – timers with the same ID share one deadline per visitor, on any page. Use the same ID on a landing page and its checkout page. Change the ID to give every visitor a fresh countdown (for a new campaign). Leave it empty and the deadline belongs to this element only.
  • Separate deadline per post – inside a query loop or a single-post template, each post or product gets its own deadline (the post ID is added to the campaign ID).
  • Server-side anchor – see below.

Where the start time is kept: the browser stores it in localStorage and in a first-party cookie gebec_<id>; the earliest of the two wins, so clearing one of them does not restart the countdown.

Server-side anchor

With Server-side anchor ticked, the browser also asks your site (REST route /wp-json/gebec/v1/anchor) to keep the start time in a signed, HttpOnly cookie gebec_a_<id>. That cookie cannot be read or changed by scripts, and browsers that shorten cookies set by JavaScript do not shorten it. Clearing localStorage, or the script cookie, therefore does not restart the deadline.

  • Nothing is written to your database. No IP address, user ID or other personal data is stored: the cookie only holds the start time and a signature.
  • The browser sends the age of its countdown rather than its clock time, so a visitor whose computer clock is wrong still gets the right deadline.
  • It works with page caching: the request is a POST with Cache-Control: no-store. If a firewall blocks the REST API, the timer still works with browser storage.

A visitor who deletes all cookies and site data, or uses a private window, gets a new deadline. This is true of every evergreen countdown that does not require visitors to log in.

Fixed date and time

  • End date from – Date picker or Dynamic data / custom field.
  • End date (dynamic data) – click the dynamic data icon and pick any tag, for example an ACF, Meta Box or post meta field, or type text. Accepted values: 2026-12-31 23:59, 2026-12-31T23:59:00+02:00, 2026-12-31 (ends at 23:59:59), 20261231 (ACF date format), 31.12.2026 23:59 and Unix timestamps. In a query loop each post uses its own field value.
  • Time zone – Site time zone (Settings → General), UTC, Visitor’s local time (everyone’s deadline is 23:59 on their own clock) or Custom (America/New_York, Europe/Berlin, +07:00, UTC-5). Named zones follow daylight saving time.

If the date is empty or cannot be read, the canvas shows a notice and the front end shows the ended state.

Daily deadline

  • Ends every day at – 24-hour time, for example 23:59 or 15:00.
  • Only on – leave empty for every day, or choose weekdays (for example Monday to Friday). On other days the timer counts to the next chosen day.
  • Time zone – as for fixed dates.

When a daily deadline passes the timer moves on to the next one, so the expiry actions do not apply.

Evergreen, restart after expiry

Same settings as evergreen, plus Restart after (hours): after the countdown ends, the visitor sees the ended state (message, hidden offer, disabled button) for that many hours, then a new countdown starts and the ended state is undone. Use 0 to restart at once.

Display

  • Layout – Boxes, Inline, Circle progress (a ring per unit that empties as time passes) or Flip cards (cards flip when the number changes; no animation for visitors who prefer reduced motion).
  • Hide days / hours / minutes / seconds – a hidden unit is added to the next shown unit, so with days hidden 2 days 3 hours shows as 51 hours.
  • No leading zeros – shows 7 instead of 07.
  • Labels – below, above, next to the number, or hidden.
  • Separator – for example : between the units (not used by the circle layout).
  • Screen reader announcements – see Accessibility.
Four Evergreen Countdown layouts built with Bricks: a hero with four glass boxes showing 02 days 14 hours 37 minutes 09 seconds, circle progress rings counting to Black Friday in New York time, an inline red daily deadline 08:43:57, and dark flip cards 05:42:06 for an evergreen loop with the server-side anchor
The four layouts: boxes, circle progress, inline and flip cards.

Labels and translation

The Labels group has a field for each unit, singular and plural (“Day” / “Days”). Leave a field empty to use the default; leave a singular empty to reuse your plural. The defaults are translatable with the text domain gravityextra-bricks-evergreen-countdown-addon (Loco Translate, WPML, Polylang string translation), and the label fields themselves can be translated per language with your multilingual plugin.

When the timer ends

Combine any of these:

  • Hide the numbers – keeps the element (and the message) but removes the digits.
  • Hide this whole element.
  • Show a message – text with basic formatting and dynamic data, styled in Style → Expiry message.
  • Show other elements (CSS selector) – for example #brxe-ended or .offer-ended. Hide those elements first: add the class gebec-hidden to them in Bricks (or set display: none). Show them as sets the display value used when they appear (block, flex, grid…).
  • Hide other elements (CSS selector) – for example the offer section or a price badge.
  • Disable buttons (CSS selector) – buttons, links and fields stay visible but cannot be clicked, for example .single_add_to_cart_button, .quantity input on a WooCommerce product page.
  • Redirect to URL – sends the visitor to another page (dynamic data allowed). Never runs in the builder.

To find an element’s selector in Bricks, select it and copy its ID (#brxe-…) from the element’s CSS ID field, or give it a class.

A fixed date that is already in the past is rendered as ended by the server, so visitors never see the offer flash before it disappears.

Product page Aurora ANC Headphones at $179.00 instead of $249.00 with the text Launch price ends in and a countdown of 03 hours 14 minutes 49 seconds above the quantity field and Add to cart button
A launch-price countdown above the Add to cart button.
The same product page after the deadline: the countdown and its heading are gone, a grey message says The launch price has ended. Join the waitlist to hear about the next batch, and the quantity field and Add to cart button are disabled
The same page after the deadline: the offer is replaced by a message and the button is disabled.

Styling

All style controls are in the element’s Style tab and update live in the canvas:

  • Units – align, gap, minimum width, padding, background, border, box shadow.
  • Digits, Labels, Separator, Expiry message – typography (font, size, weight, color, line height, letter spacing…), plus background, padding and border for the message.
  • Circle progress – size, stroke width, track color, progress color.
  • Flip cards – card background, text color and radius.

Breakpoints, global classes and the standard Bricks style options (spacing, background, border of the element itself) work as for any other element.

Query loops and several timers

You can place any number of countdowns on one page and inside query loops. Each timer reads its own settings, so a product loop can show a different deadline per product (dynamic end date, or “Separate deadline per post” for evergreen). Results loaded later by AJAX pagination, infinite scroll or filters start automatically.

Accessibility

  • The element has role="timer"; the large digits are hidden from screen readers and a text version (“2 days, 11 hours, 4 minutes, 9 seconds”) is provided instead.
  • Screen reader announcements is Off by default, because announcing every second is disruptive. Polite, once a minute announces the time left at most once a minute.
  • Animations respect the visitor’s reduced-motion setting.

Performance

  • Under 6 KB of JavaScript (2.7 KB gzipped) without jQuery and 3 KB of CSS, loaded only on pages that contain the element.
  • The numbers are rendered on the server, so there is no layout shift when the script starts.
  • One shared clock updates all timers on the page once per second.

For developers

  • Event: gebec:expired bubbles from the element when a timer ends (event.detail.key = campaign ID, event.detail.mode).
    document.addEventListener( 'gebec:expired', function ( e ) { console.log( 'ended', e.detail.key ); } );
  • Re-scan for new timers after inserting HTML yourself: window.gebecCountdownInit().
  • Filters: gebec_licensed, gebec_anchor_cookie_lifetime (seconds, receives the campaign ID).
  • Cookies: gebec_<id> (start time, first party, set by the script) and, with the anchor, gebec_a_<id> (signed start time, HttpOnly). Mention them in your cookie policy as functional cookies.

FAQ

Does it work with caching and CDNs?

Yes. The deadline is worked out in the browser; the anchor request is never cached.

My fixed date shows the wrong time.

Check the Time zone setting and Settings → General → Timezone. A named zone (“Europe/London”) follows daylight saving; a fixed offset (“UTC+1”) does not.

How do I test an evergreen timer again?

Change the Campaign ID, or open the page in a private window.

The element is missing from the panel.

Make sure Bricks (or a Bricks child theme) is the active theme and the plugin is active, then reload the builder.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr