How to Put Your WordPress Site into Maintenance Mode (2024)

Performing updates and maintenance tasks is important to keep your WordPress website secure and running smoothly. Yet when you’re in the process of making changes to your site, you may not want visitors to access it.

Fortunately, putting your website into maintenance mode can help inform visitors that it’s currently under construction and they should come back again soon. This can also prevent them from landing on a broken site or page that isn’t working.

In this post, we’ll explain what WordPress maintenance mode is and when you should use it. Then we’ll show you three methods for activating it in WordPress. Finally, we’ll teach you how to create a more custom maintenance mode design using a page builder.

What is WordPress maintenance mode?

Essentially, maintenance mode in WordPress is a status update that lets people know you’re currently making major changes to your website. In some cases, it also includes an estimate of when the site will be live again.

WordPress comes with a default maintenance mode page. It includes the text: “Briefly unavailable for scheduled maintenance. Check back in a minute.

How to Put Your WordPress Site into MaintenanceMode (1)

Although this message gets the job done, there are a handful of methods you can use to make it more visually appealing and engaging. A custom maintenance mode page does more than just inform visitors that the site will be temporarily unavailable — it can promote your social media channels, give people a peek behind the scenes, and even let them sign up for your email list so they receive updates.

Finally, if your site isn’t live yet or is being completely overhauled, another option is to create a ‘coming soon’ page. You can include a countdown to your launch date in order to generate excitement.

When you should (and shouldn’t) use maintenance mode

It’s important to make a good impression on your visitors, even when your site isn’t currently live. A broken site may make them question your professionalism or credibility.

Maintenance mode is best to use when you’re implementing significant changes to your website. It’s not necessary when you’re making minor tweaks, like publishing content or updating links. These are quick, easy changes that don’t usually cause any issues or uptime interruptions.

On the other hand, if you’re making or changing something that affects the site’s functionality, like customizing your theme, it’s best to take it offline until you’re finished.

Here are some times when it makes sense to use maintenance mode:

  • Running updates to WordPress core, themes, and plugins
  • Developing your site before it’s ready to launch
  • Editing content that you don’t want visible on the front end of your site
  • Making structural changes to your site, like modifying the navigation
  • Editing your site’s code or core files
  • Adding new elements to a main page
  • Troubleshooting errors or conflicts on your site
  • Cleaning up damage resulting from a security breach

Instead of an error message, you can control what information your visitors encounter,improving their experience and perception of your site.

How to put WordPress into maintenance mode

Now that you understand what maintenance mode is and when you should use it, let’s take a look at how you can turn it on. Below are three methods for putting your WordPress site into maintenance mode.

1. Use a plugin like WP Maintenance Mode

The fastest and easiest way to put your WordPress website into maintenance mode is by using a plugin. This is a beginner-friendly choice that eliminates the need to edit your site’s files or work with any code.

There are a handful of dependable options to choose from. One of the most popular is WP Maintenance Mode.

This free plugin is easy to use and requires just a few clicks. You can use the visual customizer to make your page more aesthetically pleasing than the default WordPress maintenance mode page.

To get started, you’ll need to install and activate the WP Maintenance Mode plugin on your website. To do this, navigate to Plugins → Add New, then search for “wp maintenance mode.” Next, click on the Install Now and Activate Plugin buttons.

Once the plugin is activated, you can make your way to Settings → WP Maintenance Mode from your admin dashboard. There, you will find five tabs.

How to Put Your WordPress Site into MaintenanceMode (2)

Under the General section, you can activate maintenance mode. Simply select the Activated setting next to Status. You can also choose to have the maintenance mode bypass search bots, and determine which users will have access to the back end of your site while it’s in maintenance mode.

To customize the appearance of your maintenance mode page, there are several options under the Design tab.

How to Put Your WordPress Site into MaintenanceMode (3)

For example, you can modify the wording of the maintenance mode message that visitors see. You can also change the background color. If you want to add additional features, like a countdown, you can do so under Modules.

How to Put Your WordPress Site into MaintenanceMode (4)

There’s also a subscribe feature that you can use to notify visitors when you’re done updating the site. You can even connect the maintenance page to your social media accounts. This way, people will be able to select social media icons to be redirected to your profiles.

When you’re done, click on Save settings at the bottom of the screen. If Activated is still selected under the General settings, your site will be put into maintenance mode.

Additional maintenance mode plugins

WP Maintenance Mode is just one plugin option, but there are other tools you might want to consider. Another popular choice is SeedProd.

This freemium solution is an excellent option when you want to create a coming soon or maintenance mode landing page that is bright and inviting. It works with just about any WordPress theme, and it also lets you customize 404 error pages.

Alternatively, if you’re looking for something more simple and straightforward, you might consider the Maintenance plugin.

This tool is more about function and utility than looks. Once installed, you can use it to enable a 503 ‘service temporarily unavailable’ message. It also lets you add your own branding to the page, like your logo and a background image. When you opt for the premium version, you can choose from over 200 pre-made templates.

You can also design and activate maintenance mode landing pages using page builder plugins, which we’ll discuss later in this post. The exact steps for turning on maintenance mode in WordPress will vary depending on the specific plugin you’re using, but the general process is similar.

2. Add code to your WordPress theme’s function.php file

Another option for putting your website into maintenance mode is to add code to your theme’s functions.php file. Since this method involves editing one of your site’s core files, you’ll want to proceed with some caution. We’d recommend backing up your website before attempting this.

Once you’ve created your WordPress backup, you can locate and edit this file in a handful of ways. You can go through your hosting provider’s file manager, or connect to your site using a File Transfer Protocol (FTP) client like FileZilla.

Alternatively, you can access and modify functions.php directly within WordPress. To do so, simply navigate to your admin dashboard, then go to Appearance → Theme Editor. On the right-hand side of your screen, you’ll see a list of your theme files.

Select Theme Functions. This will open your functions.php file.

How to Put Your WordPress Site into MaintenanceMode (5)

Scroll to the end of the file, then copy and paste the following code snippet:

// Activate WordPress Maintenance Modefunction wp_maintenance_mode() {if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) {wp_die(‘<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.’);}}add_action(‘get_header’, ‘wp_maintenance_mode’);

When you’re done, save your changes by selecting Update File at the bottom of the screen. This will automatically activate maintenance mode on your WordPress site.

If you visit the front end of your site, you should see the following:

How to Put Your WordPress Site into MaintenanceMode (6)

If you want to change the wording of the message, you can modify the descriptive text in the code you just pasted within the theme’s file. For instance, you may want to include details regarding how long your site will be under maintenance.

Explore the benefits of Jetpack

Learn how Jetpack can help you protect, speed up, and grow your WordPress site.Get up to 50% off your first year.

Explore plans


3. Edit your WordPress site’s .htaccess file

Another way to put your website into maintenance mode is to edit your .htaccess file. Note once again that it’s important to create a backup of your site before you try this.

As with the functions.php file, you can find your .htaccess file via FTP or your web host’s file manager. Then, locate your site’s root directory (typically called public_html). Open this folder, then create a new file and title it “maintenance.html.”

How to Put Your WordPress Site into MaintenanceMode (7)

Within this file, you can add the message that you want to appear on your maintenance page. Then, save your changes.

Next, navigate to your .htaccess file, right-click on it, and select Edit. Copy and paste the following code snippet at the bottom of the file:

RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_URI} !^/maintenance\.html$RewriteRule ^(.*)$ https://example.com/maintenance.html [R=307,L]

Finally, save the file. Now, your visitors will be directed to the maintenance.html page you created.

How to get your WordPress website out of maintenance mode

When you’re ready to take your site live again, there are multiple ways you can get your website out of maintenance mode. The best approach depends on the method you used to turn it on.

If you used the WP Maintenance Mode plugin, you can navigate to Settings → WP Maintenance Mode → General. Then, click on the Deactivated option.

How to Put Your WordPress Site into MaintenanceMode (8)

When you’re done, select Save settings. Your site should now be out of maintenance mode.

If you activated maintenance mode by adding code to your theme’s functions.php or .htaccess file, you’ll need to remove that code in order to take your site live again.

You’ll use the same method you used to add the maintenance mode code. For example, if you added it to functions.php via an FTP client, navigate back to your current theme’s folder, and browse to the end of the functions.php file. Delete the snippet and save the file.

If you edited your site’s .htaccess file, you’ll also need to delete the code you added and save the file. In addition, you’ll want to delete the maintenace.html file you created.

Regardless of the method you use, we recommend that you visit your site on the front end to confirm that it is no longer in maintenance mode. You might have to clear your cache and refresh your browser tab to verify this.

What to do if WordPress is stuck in maintenance mode

Although putting your site into and out of maintenance mode is a relatively simple process, you might encounter some issues along the way. For instance, it’s possible for your website to get stuck in maintenance mode.

Typically, when this happens, it’s because there’s a conflict that causes the maintenance file to believe that updates are not complete. This can also occur if you navigate away from the screen or refresh the page before an update is finished.

If you can’t log in to your site and are unable to access the back end, don’t panic. There are some simple steps you can take to troubleshoot and resolve the issue.

First, connect to your site via FTP client or your web host’s file manager. Browse to the root directory of your site, locate the maintenance.html file, right-click on it, and delete it.

Once you delete the file, refresh your website in a new browser tab. It should return to normal. If you’re still seeing the maintenance mode page, try clearing your browser cache as well.

Using a page builder to design a custom maintenance mode page

The default maintenance mode page in WordPress can look plain. Fortunately, there are ways you can design your own maintenance mode page to make it more visually appealing.

As we saw with WP Maintenance Mode, you can build a page using a plugin. The downside to using this method is that the customization options can still be somewhat limited.

If you’re unfamiliar with coding and web development, but want a more custom maintenance page, you can use a page builder plugin like Elementor.

This freemium tool lets you easily create a wide range of content pages for your website. It also includes a maintenance mode option that lets you choose from a library of templates or start from scratch. Plus, you’ll get access to an intuitive drag-and-drop builder that is beginner-friendly.

Creating a maintenance mode template

Now, let’s explore how you can make your own maintenance mode designs with Elementor. First, you’ll need to install and activate the plugin on your WordPress site.

Then, you can begin creating a maintenance mode template by navigating to Templates → Add New. Under Template type, select Page. Give your template a descriptive name, then select Create Template.

How to Put Your WordPress Site into MaintenanceMode (9)

This will open the Elementor editor interface. Locate the gear icon in the bottom-left corner of the screen. Click on it to open the page settings. Go to Page Layout → Elementor Canvas to create a blank design.

How to Put Your WordPress Site into MaintenanceMode (10)

Next, choose the folder icon to select a template. Click on the template you want to use to insert it into the editor. You can also create your page from scratch, but a template will help you kickstart your design.

Once you insert the template, you can use the Elementor interface to modify it and use the widgets to add new content. For example, you can insert a countdown timer, social share icons, and CTA buttons.

How to Put Your WordPress Site into MaintenanceMode (11)

You can drag and drop each of these elements onto the page. To modify and customize each area, you can click in the box and browse the Settings and Style options.

When you’re done styling the page to your liking, you can click on the Publish button at the bottom of the left panel to finalize your template. Now the only thing left to do is put your website into maintenance mode.

Turning on maintenance mode with Elementor

Once you save your changes, you can exit the Elementor interface and return to your dashboard. The next step is to activate maintenance mode. You can do this by navigating to Elementor → Tools and clicking on the Maintenance Mode tab.

How to Put Your WordPress Site into MaintenanceMode (12)

Under Choose Mode, you can switch from Disabled to either Maintenance Mode or Coming Soon Mode. Next, you can determine which users will be able to access your site while in maintenance mode.

Finally, you can click on the Choose Template drop-down menu, and select the template you just created.

How to Put Your WordPress Site into MaintenanceMode (13)

When you’re done, click on Save Changes. This will automatically put your site into maintenance mode and display the maintenance page you designed.

Now, check your website on the front end. If everything looks as it should, you’re all set!

Make a good impression using WordPress maintenance mode

When you’re working on your website and making significant changes, it’s important to put your website into maintenance mode. This can prevent visitors from encountering an error message and let them know when to expect your site to be live again.

As we discussed in this post, there are three methods you can use to put your website into maintenance mode:

  1. Install a plugin.
  2. Add code to your theme’s functions.php file.
  3. Edit your site’s .htaccess file.

The best method for you will depend on your comfort level and experience working with site files and adding code in WordPress. If you’re a beginner, we recommend the plugin approach. Alternatively, you can further customize your maintenance mode page using an intuitive page builder like Elementor!

This entry was posted in Learn. Bookmark the permalink.

How to Put Your WordPress Site into MaintenanceMode (14)

Rob Pugh

Rob is the Marketing Lead for Jetpack. He has worked in marketing and product development for more than 15 years, primarily at Automattic, Mailchimp, and UPS. Since studying marketing at Penn State and Johns Hopkins University, he’s focused on delivering products that delight people and solve real problems.

Explore the benefits of Jetpack

Learn how Jetpack can help you protect, speed up, and grow your WordPress site.Get up to 50% off your first year.

Explore plans

How to Put Your WordPress Site into Maintenance Mode (2024)

FAQs

How to Put Your WordPress Site into Maintenance Mode? ›

Simply log in to your hosting account and navigate to WordPress overview → Core. Then, click the toggle button beside the Maintenance Mode option to activate it. There are many plugins that allow you to put a WordPress site in maintenance mode.

How do I temporarily disable my WordPress site? ›

Simply log in to your hosting account and navigate to WordPress overview → Core. Then, click the toggle button beside the Maintenance Mode option to activate it. There are many plugins that allow you to put a WordPress site in maintenance mode.

How do I log into maintenance mode in WordPress? ›

To enable maintenance mode and show visitors your custom maintenance page, just go to SeedProd » Landing Pages in the WordPress dashboard. Here, click on the switch in the 'Maintenance Mode' section so that it shows 'Active. ' Maintenance mode won't show for you because you're logged into the site.

How do I change my WordPress website to maintenance mode? ›

How to Put WordPress in Maintenance Mode with a Plugin
  1. Install and activate the WP Maintenance Mode plugin.
  2. Go to Settings > WP Maintenance Mode.
  3. Click on the Design tab to customize the maintenance mode page that will appear to users when visiting your site when it's under maintenance.
Oct 26, 2023

How do I take my WordPress site offline for maintenance? ›

There are four main methods you can use to enable WordPress maintenance mode on your site:
  1. Use the built-in maintenance feature in WordPress.
  2. Add custom code to display a maintenance page.
  3. Enable maintenance mode through your . htaccess file.
  4. Use a WordPress maintenance mode plugin.

Can I temporarily deactivate my website? ›

If you decide that you need to do this (again, not recommended), here are some options: If you need to urgently disable the site for 1-2 days, then return an informational error page with a 503 HTTP response status code instead of all content. Make sure to follow the best practices for disabling a site.

How to put WordPress in maintenance mode without plugins? ›

Enabling Maintenance Mode Without a Plugin
  1. Step 1: Create a Maintenance Page. Design an HTML maintenance page using your preferred IDE or code editor. ...
  2. Step 2: Upload the Maintenance Page. ...
  3. Step 3: Edit the . ...
  4. Step 4: Activate Maintenance Mode. ...
  5. Step 5: Deactivate Maintenance Mode.
Jan 4, 2024

How to activate maintenance mode? ›

When setting up the maintenance page, turn on the maintenance mode by clicking the Activate button on the plugin's dashboard. You'll see the message Maintenance Mode Active at the top right corner of your WordPress admin page when it's activated.

How does WordPress maintenance mode work? ›

Essentially, maintenance mode in WordPress is a status update that lets people know you're currently making major changes to your website. In some cases, it also includes an estimate of when the site will be live again. WordPress comes with a default maintenance mode page.

What is maintenance mode on a website? ›

Maintenance Mode is designed to make your website private when editing it. This feature creates a landing page that tells the visitors your website is under construction. With the Pro version, available for Managed WordPress customers, you get more customisation options.

How do I make my website maintenance? ›

By following these steps in proper upkeep you'll have ensured that your website continues to make its mark!
  1. Check Website Performance. ...
  2. Regular Content Updates. ...
  3. Security Checks. ...
  4. Server Maintenance. ...
  5. Search Engine Optimization (SEO) ...
  6. Routine Maintenance Tasks. ...
  7. Regular Backups.
Mar 10, 2023

Do WordPress sites need maintenance? ›

Every WordPress website requires some sort of maintenance on a regular basis. You can't just launch a website and leave it like that. You will need the plan to keep maintaining the website so that it can help you to grow your business.

What is the maintenance mode code for WordPress? ›

is_user_logged_in()) { wp_die('<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later. '); } } add_action('get_header', 'wp_maintenance_mode'); This is the default WordPress maintenance mode setting and message.

How do I reset my WordPress site without losing data? ›

Select all the WordPress files, right-click, and click the Delete option. To retain specific files such as themes, images, or plugins before the reset, navigate to the wp-content folder. Hover over the desired file, right-click, and choose the option to compress it.

How long does WordPress maintenance take? ›

The answer to this question is: it depends. Depending on the size and complexity of your site, WordPress maintenance can take anywhere from a few minutes to a few hours. The time it takes is also affected by how often you do maintenance on your site.

How do I clean up my WordPress site? ›

Quick Summary: How to Clean Up Your WordPress Site
  1. Remove unnecessary data. It's a good idea to delete inactive plugins and themes. ...
  2. Remember updates. Be sure to keep WordPress core, plugins, and themes updated. ...
  3. Optimize necessary data. To speed up your website, clean up your database.

How do I log into my WordPress admin console? ›

On your browser's address bar, search for your domain name with /wp-admin or /wp-login. php at the end, e.g., example.com/wp-admin or example.com/wp-login.php. Type in your WordPress Username or Email Address and Password.

How do I enable maintenance mode in WordPress Elementor? ›

Follow these steps:
  1. Login to WP Admin.
  2. Go to Elementor > Tools > Maintenance Mode.
  3. Set the following: Choose Mode. Choose Coming Soon if your website is under construction and still not launched. Choose Maintenance if your live website is taken down for update and maintenance. ...
  4. Click Save Changes.
Mar 26, 2024

Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6038

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.