Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Backups & maintenance · Guide

How to Enable Maintenance Mode in WordPress (Step by Step)

How to Enable Maintenance Mode in WordPress (Step by Step)

Short answer

WordPress has no built-in switch, so install a maintenance mode plugin, add a short notice and set it to active. Logged-in admins still see the real site while visitors see the notice, and a good plugin sends a 503 status so search engines treat the downtime as temporary.

Key takeaways

  • WordPress has no maintenance setting; use a plugin or another method.
  • Use maintenance mode for live sites and coming soon for new ones.
  • A 503 status tells search engines the downtime is temporary.
  • WP-CLI and a code snippet work without an extra plugin.
  • Clear every cache after turning maintenance mode off.

How do you enable maintenance mode in WordPress?

Install a maintenance mode plugin, design the notice page and switch it on; logged-in admins still see the real site while visitors see the notice with a 503 status.

WordPress has no maintenance switch in its settings. It only shows a brief maintenance notice by itself while updates run, then removes it.

For planned work, such as a redesign, a migration or a big plugin change, you need to turn it on yourself. A plugin is the easiest way, but page builders, WP-CLI and a small code snippet also work.

MethodBest forSkill needed
Maintenance pluginMost sitesNone
Elementor's maintenance modeSites already built in ElementorLow
Host or platform toggleHosts that offer oneNone
WP-CLI commandShort jobs over SSHMedium
Code snippetDevelopers who want no extra pluginMedium

When should you use maintenance mode?

Use it when visitors would see broken pages or lose data during your work, such as a redesign, a migration, a database change or a large update.

Short, routine updates usually do not need it. WordPress handles a few seconds of downtime on its own, as our guide on how to update plugins in WordPress explains.

For bigger changes, a staging site is often better than maintenance mode. You make the changes on a copy, test them, then push them live in one step. Our guide to setting up a staging site explains how.

Keep maintenance windows short. Every hour offline costs visitors and, for shops, sales. Plan the work in advance using a routine such as our WordPress maintenance checklist.

Maintenance mode or coming soon mode?

Use maintenance mode for an existing site that is briefly down, and coming soon mode for a new site that has not launched yet.

The difference matters for search engines. Maintenance mode should send a 503 status code, which tells search engines the outage is temporary and to come back later.

Coming soon mode usually sends a normal 200 status. That lets search engines index a simple holding page while you build the real site.

Most plugins offer both modes. Pick the right one, because a coming soon page on an established site can replace your real pages in search results if it stays up for long.

Method 1: Use a maintenance mode plugin

Install a plugin such as LightStart or SeedProd from the plugin directory, design the notice page, then switch the status to active.

Go to Plugins, then Add New Plugin, and search for maintenance mode. Popular free options include LightStart, formerly WP Maintenance Mode, and SeedProd's Coming Soon Page and Maintenance Mode.

After activating, open the plugin's settings. The steps vary, but most follow the same pattern:

  1. Choose maintenance mode rather than coming soon.
  2. Add a headline, a short message and your logo.
  3. Set which user roles can bypass the page and see the real site.
  4. Turn the status on and save.

Open the site in a private browser window to check what visitors see. While you are logged in, you will normally see the real site instead.

Check the plugin page for current features. Some options, such as countdown timers or email sign-up forms, may be paid extras.

Method 2: Use Elementor's maintenance mode

If your site uses Elementor, build a maintenance template, then pick it and set the mode in Elementor's maintenance mode settings.

Elementor has a built-in maintenance and coming soon feature, so you do not need another plugin. The Elementor maintenance mode guide shows where the setting lives in current versions.

First create a page template with your notice, such as a logo, a short message and contact details. Then choose maintenance mode, select who can access the site and pick the template.

Elementor adds a notice to the admin bar while the mode is on, which reminds you to turn it off. Our guide on how to use Elementor in WordPress covers templates if you are new to the builder.

Method 3: Use your host or platform's toggle

Check your hosting dashboard for a maintenance or coming soon switch, because some hosts include one for each WordPress site.

The location and name vary between hosts. Look in the site's settings or tools area, or search your host's help centre for maintenance mode.

Host toggles are handy because they work even when a plugin conflict stops you from reaching the WordPress dashboard.

WordPress.com sites have a coming soon setting in their site settings for sites that are not ready yet. Check the WordPress.com help pages for the current location.

Method 4: Use the WP-CLI command

Run wp maintenance-mode activate over SSH to put the site in maintenance mode, and wp maintenance-mode deactivate to bring it back.

WP-CLI includes a maintenance-mode command with activate, deactivate, status and is-active subcommands:

wp maintenance-mode activate
wp maintenance-mode status
wp maintenance-mode deactivate

This uses the same mechanism WordPress uses during updates. Visitors see the plain Briefly unavailable for scheduled maintenance message, covered in our guide to that maintenance message.

Unlike most plugins, this mode also blocks logged-in admins from the front end. It suits short, scripted jobs rather than design work you need to preview.

Method 5: Add a small code snippet

Developers can add a few lines to a child theme or a snippets plugin to show a maintenance message with a 503 status to anyone who is not an administrator.

Here is a simple example:

add_action( 'template_redirect', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        wp_die(
            '<h1>Down for maintenance</h1><p>We will be back shortly.</p>',
            'Maintenance',
            array( 'response' => 503 )
        );
    }
} );

The login page still works, so you can sign in and see the site. Remove the snippet, or wrap it in a setting, when the work is done.

Test any code on staging first. A typo in functions.php can take the whole site down, which is the opposite of what you want.

How do you keep maintenance mode SEO-friendly?

Send a 503 status, add a Retry-After header if possible, and keep the downtime to hours rather than days.

The 503 Service Unavailable status tells crawlers the outage is temporary. A normal 200 page saying we are offline can be indexed in place of your real content.

Google's guidance on pausing a site warns that serving 503 for a long time, more than a couple of days, can lead to pages being dropped from results.

Most good maintenance plugins send 503 by default. Check the plugin settings, or test the page with an HTTP status checker while logged out.

If your site needs to be offline for more than a day or two, consider keeping a limited version live instead, such as key pages with a notice banner.

What should the maintenance page say?

Say the site is down for planned work, when it will be back and how people can reach you in the meantime.

A good maintenance page is short. Include your logo so visitors know they are in the right place, a one-line reason, an expected return time and a contact email or social link.

Avoid technical detail. Visitors do not need to know you are migrating a database; they need to know when to come back.

For shops, add a phone number or email for urgent orders. A customer who cannot reach you may buy elsewhere.

How do you turn maintenance mode off?

Switch the plugin status to off, disable it in Elementor or your host, run the WP-CLI deactivate command, or remove your snippet, then clear the cache.

Caching plugins and CDNs may keep serving the maintenance page after you turn it off. Purge every cache layer and check in a private window.

If WordPress itself is stuck showing Briefly unavailable for scheduled maintenance, a leftover .maintenance file is the cause. Our fix for being stuck in maintenance mode shows how to delete it safely.

Deactivate the maintenance plugin when you do not need it. Fewer active plugins means less to update and less to go wrong.

Frequently asked questions

Does WordPress have a built-in maintenance mode?

Only during updates. WordPress shows a short maintenance message while it installs updates, then removes it. For planned work you need a plugin, a page builder feature, a host toggle, WP-CLI or a code snippet.

Will maintenance mode hurt my SEO?

Not if it is short and returns a 503 status. Search engines treat 503 as temporary and come back later. Long outages of more than a couple of days can cause pages to drop from results.

Can I still see my site while it is in maintenance mode?

With most plugins and Elementor, yes. Logged-in administrators see the real site while visitors see the notice. The WP-CLI method is different and blocks everyone from the front end.

What is the difference between maintenance mode and coming soon mode?

Maintenance mode is for an existing site that is briefly offline and should return a 503 status. Coming soon mode is for a new site before launch and usually returns a normal status so the page can be indexed.

Why is my site still showing the maintenance page?

A cache is often still serving the old page, so purge your caching plugin, server cache and CDN. If WordPress shows its own maintenance message, delete the leftover .maintenance file in the site root.

Sources

  1. wp maintenance-mode WordPress Developer Resources
  2. LightStart – Maintenance Mode, Coming Soon and Landing Page Builder WordPress.org Plugins
  3. Set up a custom maintenance mode page for your site Elementor Help Center
  4. 503 Service Unavailable MDN Web Docs
  5. Pausing or disabling a website Google Search Central

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.