Skip to content

How to add pop-ups and banners to your WordPress website (that people don't hate)

Pick the quietest format that works, show it at the right moment, cap how often it appears, and only count down to a real deadline. Here is how, plus a free way to do it in WordPress.

8 min read · By the YOLO team
The Spotlight designer: elements on the left, a winter sale pop-up with a flip-clock countdown on a real home page in the middle, and the countdown settings on the right with “Checks pass” at the top

To add a pop-up or banner to your WordPress website, pick the quietest format that does the job, show it on the right pages at the right moment, and cap how often each visitor sees it. Make sure it fits a phone, closes with one tap, and only counts down to a deadline that is real.

This guide covers each of those choices, so it helps whichever tool you use. Then it shows how YOLO Spotlight, a free extension for YOLO for WordPress, handles them, with honest countdowns and phone checks built in.

Pick the right format: bar, pop-up, slide-in or panel

Most of the annoyance people feel about pop-ups comes from using a big format for a small message. Match the format to the job:

  • A bar across the top or bottom of the page suits everyday notices: free delivery over a certain amount, holiday opening hours, or a sale that is on now. It doesn’t block anything, so it can show on every page.
  • A slide-in from a corner is good for a first-order code, a newsletter sign-up or a note about a recent order. People can carry on reading.
  • A pop-up in the middle of the screen is for the big moments: Black Friday, a launch, the last day to order before Christmas. Use one at a time, and not on every visit.
  • A panel inside the page works for a sale box in a blog post or on a product page, where the visitor has already shown interest.
  • A floating button in a corner lets visitors open an offer when they want it, which suits things like an advent calendar.

Show it at the right moment, and not too often

A pop-up that opens the moment a page loads interrupts someone before they know why they came. A few small rules make a big difference:

  1. Wait a little. A delay of four to eight seconds, or until someone has scrolled part of the page, means they have seen what you offer first.
  2. Target the pages that matter. A Black Friday offer belongs on your shop and product pages, not on your privacy policy or contact form.
  3. Cap the frequency. Once a day or once a week is plenty. If someone closes it, hide it for a few days.
  4. Think about who is looking. A first-order code makes sense for new visitors, not for customers who are signed in. A campaign link (UTM) can show a matching offer to people from your newsletter.
  5. One pop-up per page. If two campaigns want the same page, decide which one wins.

Tip: open your site on your own phone, in a private window, before a promotion goes live. If it covers what you came for, or you can’t find the close button within a second, change it.

Phones, Google and accessibility

Most visitors arrive on a phone, where a pop-up takes up the whole screen. Google’s guidance on intrusive interstitials warns against pop-ups that cover the main content as soon as someone arrives from search, because they make the page harder to use. Bars and small slide-ins that leave the page readable are the safer choice on phones, and a full-screen pop-up is best saved for a visitor’s second page.

A pop-up is also a dialog, so people using a keyboard or a screen reader need it to behave like one. The W3C’s modal dialog pattern sets out the basics: move focus into the pop-up when it opens, keep it there while it is open, close it with the Esc key, and put focus back where it was afterwards. Check the text contrast too, including on the button when someone hovers over it, and stop any animation for visitors who ask their device for less motion.

Honest countdowns and social proof under UK law

Countdown timers and “someone just bought this” notes work because people trust them. That is exactly why the rules on them are strict. Since April 2025 the Competition and Markets Authority (CMA) can enforce consumer law itself under the Digital Markets, Competition and Consumers Act 2024, and its guidance on unfair commercial practices (CMA207) is clear about urgency:

  • A countdown must end the offer. The guidance gives the example of an offer that “will end when a countdown clock runs out”, which then carries on while the clock restarts. Falsely saying an offer is only available for a limited time is a banned practice. A real end date is fine.
  • Daily cut-offs are fine when they are true. “Order by 2pm for next-day delivery” is honest if 2pm really is your courier’s cut-off.
  • Social proof must not mislead. The CMA’s own example is a pop-up saying “Be quick! We’ve sold 10 in the last 5 mins”, which can mislead even when true if there is plenty of stock. Show what happened, plainly, and never make activity up.
  • Games must be fair. If you run a spin-the-wheel or scratch card, show the chances, keep it free to play, and make sure every prize code works where people pay.

The simplest habit: set the promotion’s end date first, and point every countdown at that same moment.

Plan your promotions around the calendar

Retail moments come round every year, so plan them a few weeks ahead rather than the night before. In the UK the busy ones are Valentine’s Day, Mother’s Day, Easter, the bank holidays, Father’s Day, back to school, Halloween, Black Friday weekend and Cyber Monday, Christmas last order dates and opening hours, Boxing Day and the New Year.

For each one, decide the offer, the window it runs in, and the format. Black Friday usually wants a bar on every page plus one pop-up on shop pages. Christmas last order dates suit a bar that changes on the day. Holiday opening hours are a bar and nothing more.

How YOLO Spotlight does it

YOLO Spotlight adds bars, pop-ups, slide-ins, in-page panels and floating buttons to a WordPress site running YOLO. You design them in a full-screen designer that shows the promotion on your real pages, in desktop, tablet and phone views.

The Spotlight designer with a winter sale pop-up and a flip-clock countdown on a real home page, and “Checks pass” at the top
The Spotlight designer with a winter sale pop-up and a flip-clock countdown on a real home page, and “Checks pass” at the top
  • Start fast. Pick one of 38 templates, from a neon Black Friday bar to holiday opening hours, or describe what you want and let Design it for me suggest three designs. The AI designer is optional and uses your own Anthropic or OpenAI key.
  • Design without a designer. Drag in headings, buttons, countdowns, coupon codes, pictures, a ticker or a video. Layers, rows and columns keep it tidy on a phone, and colours can follow your YOLO Design brand and dark mode.
  • Set the rules. Choose pages, devices, new or returning visitors, campaign links and countries (with YOLO Geo-IP), then the trigger: on load, after a delay, on scroll, on exit, when idle or on a click. Cap it at once a visit, day or week, and hide it for days after someone closes it.
  • Check before it goes live. The Checks tab tests contrast (including button hover colours), text size, whether it fits a phone, missing close buttons and missing picture descriptions. It also checks that every countdown ends when its promotion does.

Some rules are built in and can’t be switched off. Full-screen pop-ups wait for a visitor’s second page on a phone. Pop-ups keep focus inside, close with Esc and give focus back. They wait while your cookie banner is open. Each promotion is drawn in its own shadow DOM, so your theme can’t break it, and the rules run in the visitor’s browser, so it works with page caching.

Codes, games and money earned

Spotlight joins up with the rest of your site. A coupon block can show a shared code with a copy button, or make a single-use code for each visitor in YOLO Shop, YOLO Bookings or YOLO Events, with an expiry date and a minimum spend.

For something more playful there is spin the wheel, a scratch card, mystery boxes, an advent calendar where only today’s door opens, and a gift-finder quiz that ends in an offer. In all of them your server picks the prize by the chances you set, never the visitor’s browser. Visitors can always see the chances, everyone gets one go a day, and it is free to play.

A Scratch and win pop-up with a silver scratch card, a Reveal it link and a See the chances link
A Scratch and win pop-up with a silver scratch card, a Reveal it link and a See the chances link

Social proof shows real paid orders, bookings and event tickets from your own site, one at a time, with “Someone” instead of a name unless you choose first names. Practice orders never count, and when nothing has happened lately it hides itself.

Email sign-ups go to YOLO CRM, which sends a confirm link before anyone is added. Spotlight doesn’t store email addresses, and it counts views and clicks without cookies. You can also put any YOLO Forms form inside a pop-up.

Each promotion shows its views, clicks and closes, plus the money it brought in over the last 30 days: paid orders, bookings and tickets that used its codes, in pounds. Run an A/B test with up to four versions and Spotlight tells you in plain words whether there is a winner yet, or whether it is too early to say.

Let the calendar, or your AI, do the planning

Spotlight’s Coming up list shows the UK dates worth a promotion, each with a plan-by date and a matching template. Plan it makes a draft with the dates and countdown already filled in. Switch on Autopilot and Spotlight drafts them for you each day as their plan-by dates arrive, and emails you. It never publishes anything: you check each draft and press Publish.

If you already work with an AI assistant through YOLO, it can do the same job. Spotlight has an API and a guide written for AI assistants, so you can ask for “a Black Friday bar for Friday to Monday with 20% off and a countdown to the end of the sale”, and it starts from a template, runs the checks and leaves it as a draft for you to look at. For moments that need a little more, Spotlight can show a live YOLO Scenes scene or one of your explainer videos inside a pop-up.

The short version

  • Use the smallest format that works: bars for notices, slide-ins for offers, pop-ups for big moments.
  • Wait a few seconds, target the right pages and cap how often people see it.
  • On phones, leave the page readable on arrival. Make every pop-up keyboard-friendly.
  • Only count down to a real end, and only show social proof that really happened.
  • Plan the year’s moments a few weeks ahead.

If your site runs YOLO, YOLO Spotlight is free for YOLO Cloud customers. New to YOLO? Get started here.

Questions about this

How do I add a pop-up to my WordPress website?

Use a pop-up tool, pick a format, write a short heading and one button, then set the pages, the trigger and how often it shows. Check it on a phone before it goes live. With YOLO Spotlight you start from a template, a UK date or an AI design.

Do pop-ups hurt SEO?

They can on phones. Google warns against pop-ups that cover the main content as soon as someone arrives from search. Bars and small slide-ins are safer, and full-screen pop-ups are best kept for a visitor's second page.

Are countdown timers legal in the UK?

Yes, if they are true. The CMA's guidance says an offer that carries on after its countdown runs out, with the clock restarting, is misleading. Point the countdown at the real end of the offer.

How often should a pop-up show?

Once a day or once a week is usually plenty, with a delay of a few seconds. If someone closes it, hide it for a few days, and never show two pop-ups on the same page.

Is there a free OptinMonster alternative for WordPress?

YOLO Spotlight is free for YOLO Cloud customers and covers pop-ups, bars, slide-ins, countdowns, coupon codes, A/B tests and a spin-to-win wheel. It works on WordPress sites running YOLO; OptinMonster works on any website.

Give your AI the keys.

The plugin is free and runs on your own server. YOLO Cloud is free to start.