Maintenance Mode PRO

PRO This is a WP Coder Pro feature — the free WP Coder doesn’t include it. Compare WP Coder and WP Coder Pro Pricing

Maintenance Mode shows a page you design as a WP Coder snippet to everyone except administrators — while you update the site, change the theme or migrate.

Turn it on#

  1. Create a snippet with your “We’ll be back soon” page: markup in the HTML tab, styles in CSS, optional JS. Save it.
  2. Go to Tools → Site Tools → Enable Maintenance Mode.
  3. Choose the snippet in the Snippet list and click Save.

While maintenance mode is on, a red item in the admin bar reminds you. Switch the tool off to open the site again for everyone.

If no snippet is chosen, or it was deleted or prints nothing, visitors get a plain built-in page — “Briefly unavailable for maintenance” — instead of a blank screen.

Who sees what#

Visitor Result
Administrators The normal site.
Other logged-in users (editor, customer, subscriber…) The maintenance page.
Logged-out visitors The maintenance page.
The login page and wp-admin Never blocked.

To check what other roles see, use Test Users.

SEO-friendly by design#

The page is sent with 503 Service Unavailable, a Retry-After header (one hour) and no-cache headers. Search engines understand the downtime is temporary and come back later; CDNs and proxies don’t keep the page after you finish.

Designing the page#

  • Only that snippet’s CSS and JS are loaded — the theme’s stylesheet is not — so the page is self-contained. Include everything it needs (fonts, colours) in the snippet.
  • The page uses the snippet’s saved CSS/JS files, so save the snippet after editing its styles.
  • The snippet renders like its shortcode, so QuickCode (when enabled) and Global Variables work: {{site.name}}, {{global.support_email}}.
<main class="maint">
  <h1>{{site.name}} is getting an upgrade</h1>
  <p>We'll be back within the hour. Questions? <a href="mailto:{{global.support_email}}">Email us</a>.</p>
</main>
body { margin: 0; font-family: system-ui, sans-serif; }
.maint { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; }

On a cached site#

A full-page cache may still serve cached pages. Purge the cache when you switch maintenance mode on or off (Tools → Developer → Clear Page Cache).