Skip to content

How to show WordPress Popup for a Specific Date and Time Period?

Key Takeaways

  • Show For Specific Time en Popup Builder Pro fija una fecha y hora de inicio y otra de fin, y hace que el popup aparezca y desaparezca solo.
  • Popup Builder decide esta condición en el servidor usando la zona horaria del sitio, así que fuera de la ventana no se renderiza nada y no aparece un flash del popup.
  • Nexter Blocks Pro requiere activar Popup Builder en Nexter > Blocks, y el popup necesita otra condición, como On Page Load, para abrirse dentro de la ventana.
Table of Contents

A sale announcement left up after the sale is worse than no announcement at all.

Show For Specific Time gives the popup a start and an end, so it appears and disappears on its own.

For every Popup Builder setting in one place, see the Popup Builder block guide.

Before You Start

  • Edition: Pro — the Popup Builder block is part of Nexter Blocks Pro.
  • Block to enable: Popup Builder, switched on under Nexter > Blocks in your WordPress dashboard.
  • The popup’s content decided: a short message, a form, or a saved pattern to load into it.

Learn via Video Tutorial

Steps

  1. Add the Popup Builder block to your page and click Design from Scratch.
  1. In the Content panel, choose a Type and set the popup’s size.
The Content panel with the Type setting
  1. Set Content Type and add what the popup should show.
The Content Type setting with Pattern, Content, Editor and Shortcode
  1. Open Display Conditions and switch Show For Specific Time on.
The Display Conditions panel with Show For Specific Time and its date fields
  1. Set the start and end date and time for the period the popup should run.
  1. Publish the page and test it on the front end.

A popup can have more than one display condition switched on at once. Leave On Button Click on only if you also want the button to open it.

How It Behaves

  • This condition is decided on the server, using your site’s timezone.
  • Inside the window the popup renders normally; outside it the block renders nothing at all — both were verified.
  • Because it is decided before the page is sent, there is no flash of a popup that should not be there.
  • The popup still needs another condition, such as On Page Load, to decide how it opens within that window.

Limitations

  • Pro only.
  • The window uses your site’s timezone, not the visitor’s, so an international audience sees it start and end at your local times.
  • Page caching can serve a cached copy from before or after the window. Clear the cache when the window opens and closes.
  • Outside the window nothing is rendered, so there is no way to preview the popup on the live page before it starts.

Troubleshooting

The popup does not show during the period I set

Check the site timezone under Settings > General, and clear any page cache. Then confirm another condition is switched on to actually open it.

It is still showing after the end date

A cached copy of the page is being served. Clear the page cache.

I want to preview it before the start date

Set the start date to now temporarily, check the popup, then set the real window.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!