Skip to content
FunnelGuard

Fix guide by FunnelsGuard

'Test' or 'staging' banner on live site: how to find and remove it

PRF-260High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

This is a visible message on your public site that says things like Staging, Test site, Development, Under construction or This is a demo store. It is meant for your team, not your customers.

Common sources: a staging environment banner that was copied to production, a maintenance or coming soon plugin left on, a store in a trial or demo mode, a global announcement bar with test text, or a developer's debug snippet that adds a label to the page.

Why it costs you leads or sales

Visitors read the banner as a sign that the site is unfinished, not real or not safe. Many will not enter their details or card number on a page that says 'test'. Some will assume orders will not be fulfilled.

It also hurts ads and search. Paid visitors land on a page that looks broken, and a staging notice can sit in the text Google shows in results. In the worst case the staging banner comes with a noindex tag or a password wall that was copied over too.

Where a staging banner breaks the journey
  1. Ad or search clickVisitor arrives on the live page
  2. Page loads with 'Staging' bannerSite looks unfinished or fake
  3. Form or checkoutVisitor hesitates and leaves
  4. Lead or orderNever created

The visitor reaches the page but trust is lost before the form or checkout.

How to check if your site has it

Find a test or staging banner
  1. Open your live pages in a private window

    Use a private or incognito window so you are logged out and see what customers see. Check the home page, your main landing pages, the contact page and the checkout.

  2. Check on mobile too

    Some bars only show on small screens, or are hidden behind a sticky header on desktop.

  3. Search the page source

    View source and search for words such as staging, test, dev, demo, maintenance and under construction. Banners added by script may only show in the rendered page, so also use your browser's Inspect tool.

  4. Check the live URL, not a copy

    Make sure you are on your real domain, not a staging subdomain, and that the live domain does not redirect to staging.

  5. Look at cached versions

    A CDN or caching plugin can keep serving an old page with the banner after you remove it.

How to fix it

First work out where the banner comes from. Right-click it and choose Inspect to see its element and class name. That usually points to a plugin, theme section or script.

Remove the banner by platform
  1. Check plugins

    In Plugins, deactivate maintenance, coming soon or staging-notice plugins. Some hosts add a staging bar through their own plugin or dashboard setting.

  2. Check the theme

    Look in Appearance > Customize and your theme's announcement or header bar options for test text.

  3. Check the database copy

    If you pushed staging over live, check Settings > General for the right site URL and Settings > Reading that 'Discourage search engines' is off.

  4. Clear caches

    Purge your caching plugin, host cache and CDN.

Show an environment banner only outside productionjavascript
const isProduction = window.location.hostname === 'www.example.com';
if (!isProduction) {
  const bar = document.createElement('div');
  bar.textContent = 'STAGING - not the live site';
  bar.style.cssText = 'background:#c00;color:#fff;padding:8px;text-align:center';
  document.body.prepend(bar);
}
Live page before and after

Before

  • Red 'STAGING' bar at the top of every page
  • Visitors unsure the site is real
  • Forms and checkout avoided

After

  • Clean page with no internal notices
  • Banner appears only on the staging domain
  • Visitors continue to the form or checkout

How to confirm it's fixed

Confirmation checks
  • Home page, key landing pages, contact page and checkout show no test text in a private window
  • Checked on desktop and mobile
  • Page source and rendered page search finds no staging, test or demo notice
  • Caches and CDN purged
  • No noindex tag or password wall left on the live site
  • Live tracking and payment settings are the production ones

How to prevent it happening again

Prevention
  • Tie environment banners to the hostname or an environment variable
  • Add a pre-launch checklist step: search the live page for test words
  • Keep staging and live settings separate (analytics IDs, payment keys, indexing)
  • Review pushes from staging to live before and right after they go out
  • Run a scheduled check on your live pages that fails if banner text appears
How it usually unfolds (example)
  1. Day 0

    Staging site is pushed to live with its banner

  2. Day 0-3

    Ads and search send visitors who see the notice

  3. Day 3

    Someone spots it and removes it

  4. Day 3

    Cache purged and live page checked

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor loads your live pages on a schedule and runs a text-absent check: it looks for banner wording such as test or staging text and flags the page if that text is present. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause, by email, Slack, Teams, WhatsApp, webhook or PagerDuty.

The check only finds text you can see on the page it visits, so it covers the pages and journeys you set up. The Free plan includes 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial, and a free read-only website audit is available too.

Frequently asked questions

Questions people ask

Why is my live site showing a staging banner?

Most often a staging copy was pushed to production with its environment banner, or a plugin, theme bar or script that adds the notice is still active. Inspect the banner to see its element and class, which shows where it comes from.

How do I remove a 'test site' notice from my website?

Find the source: a maintenance plugin, announcement bar, custom code or hard-coded HTML. Remove or turn it off, publish, then clear your site, host and CDN caches and check in a private window.

Why does the banner still show after I removed it?

A cache is probably serving the old page. Purge your caching plugin, hosting cache and CDN, then reload in a private window. Also check that you edited the live theme or domain rather than a copy.

Does a staging banner hurt SEO?

It can. The wording may appear in search snippets, and staging pushes often carry a noindex tag or blocked robots.txt that stops pages being indexed. Check both after removing the banner.

How can I stop staging settings reaching my live site?

Show environment banners based on the hostname or an environment variable so they switch off in production. Keep separate analytics IDs and payment keys, and review each push from staging to live.

How do I check my site for leftover test text automatically?

Use a monitor that loads your live pages on a schedule and checks that certain words are absent. FunnelGuard does this with a text-absent check and alerts you with a screenshot if banner text appears.

Can a Shopify or Squarespace trial banner show to customers?

Yes. Trial or password-protected sites can show notices or a password page to visitors. Choose a plan, publish the site and turn off password protection before sending traffic.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: text_absent.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.