How to Put WordPress Into Maintenance Mode?

21 minutes read

To put WordPress into maintenance mode, you can follow these steps:

  1. Connect to your WordPress site using an FTP client or accessing the file manager in your web hosting control panel.
  2. Locate the root directory of your WordPress installation. This is usually the folder where you can find files like wp-config.php and wp-content.
  3. Look for a file named ".maintenance" in the root directory. If it exists, skip to step 6.
  4. If you don't find the ".maintenance" file, create a new file using a text editor and name it ".maintenance". Make sure to include the dot before the filename to make it a hidden file.
  5. Open the ".maintenance" file and add the following lines of code:
1
2
<?php
$upgrading = time();


  1. Save the changes and upload the ".maintenance" file to the root directory of your WordPress installation.
  2. Once the file is uploaded, WordPress will be in maintenance mode, and visitors will see a "Briefly unavailable for scheduled maintenance. Check back in a minute" message when accessing your website.
  3. To deactivate maintenance mode and bring your site back online, simply delete the ".maintenance" file from the root directory.


Note: If you have an active WordPress caching plugin, you might need to clear the cache after activating or deactivating the maintenance mode.

Best WordPress Books of December 2024

1
WordPress: The Missing Manual: The Book That Should Have Been in the Box

Rating is 5 out of 5

WordPress: The Missing Manual: The Book That Should Have Been in the Box

2
WordPress All-in-One For Dummies

Rating is 4.9 out of 5

WordPress All-in-One For Dummies

3
Professional WordPress: Design and Development

Rating is 4.8 out of 5

Professional WordPress: Design and Development

  • Wrox Press
4
WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

Rating is 4.7 out of 5

WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

5
Wordpress for Beginners: 3 Books in 1- A Comprehensive Beginners Guide+ Tips and Tricks+ Simple, Effective and Advanced Strategies to Build a Beautiful WordPress Website

Rating is 4.6 out of 5

Wordpress for Beginners: 3 Books in 1- A Comprehensive Beginners Guide+ Tips and Tricks+ Simple, Effective and Advanced Strategies to Build a Beautiful WordPress Website

6
WordPress 5 Cookbook: Actionable solutions to common problems when building websites with WordPress

Rating is 4.5 out of 5

WordPress 5 Cookbook: Actionable solutions to common problems when building websites with WordPress

7
WordPress in easy steps

Rating is 4.4 out of 5

WordPress in easy steps

8
WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

Rating is 4.3 out of 5

WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

9
Building Web Apps with WordPress: WordPress as an Application Framework

Rating is 4.2 out of 5

Building Web Apps with WordPress: WordPress as an Application Framework

10
1-Hour WordPress 2021: A visual step-by-step guide to building WordPress websites in one hour or less!

Rating is 4.1 out of 5

1-Hour WordPress 2021: A visual step-by-step guide to building WordPress websites in one hour or less!

11
Professional WordPress Plugin Development, 2nd Edition

Rating is 4 out of 5

Professional WordPress Plugin Development, 2nd Edition

12
WordPress For Dummies (For Dummies (Computer/Tech))

Rating is 3.9 out of 5

WordPress For Dummies (For Dummies (Computer/Tech))

Is it possible to show a video or slideshow on the maintenance mode page?

Yes, it is possible to show a video or slideshow on the maintenance mode page. You can achieve this by adding the necessary HTML or embed code for the video or slideshow within the maintenance mode template or HTML file.

What is the difference between maintenance mode and under construction mode in WordPress?

Maintenance mode and under construction mode are commonly used in WordPress to notify visitors that a website is undergoing updates or changes. While they both serve a similar purpose, there are a few key differences between the two:

  1. Maintenance Mode: This mode is used when a website is temporarily unavailable for maintenance or updates. It typically displays a message or splash screen to inform visitors that the site will be back online soon. Maintenance mode is often implemented using a plugin or theme, which allows the website owner or administrator to work on the site privately while visitors see the maintenance message.
  2. Under Construction Mode: This mode is used when a website is being built or redesigned from scratch. It displays a placeholder page with limited or basic information about the website, such as a logo, brief description, and contact information. Under construction mode is usually used during the initial development phase of a website.


In summary, maintenance mode is used for temporary maintenance or updates, while under construction mode is used to indicate that the site is still being built or redesigned.

Is it possible to display a custom message to visitors during maintenance mode?

Yes, it is possible to display a custom message to visitors during maintenance mode. There are several ways to achieve this, depending on the platform or CMS you are using for your website.

  1. Built-in maintenance mode: Some CMS platforms, like WordPress, have a built-in maintenance mode feature. You can activate it, and it will display a default message to visitors. However, you can customize this message by editing the code or using a plugin or theme specifically designed for maintenance mode.
  2. Maintenance mode plugins/themes: Many CMS platforms have plugins or themes that are designed specifically for maintenance mode. These allow you to easily enable maintenance mode with a custom message. Some popular plugins for WordPress include "WP Maintenance Mode" and "SeedProd coming soon and maintenance mode".
  3. Customizing the HTML/CSS code: If you have access to the HTML/CSS code of your website, you can create a custom maintenance mode page. Simply create a new HTML file with your desired message and styling, and upload it to your server. Then, configure your server to display this custom page temporarily during the maintenance period.
  4. Content delivery network (CDN): If you are using a CDN, you might have options to customize the message displayed during maintenance mode. CDNs like Cloudflare provide features such as "Custom Pages" where you can design your own maintenance page and set it to be displayed during maintenance.


Remember, it is important to inform your visitors about the maintenance and expected duration, provide alternative contact information if necessary, and apologize for any inconvenience caused.

Best WordPress Books of December 2024

1
WordPress: The Missing Manual: The Book That Should Have Been in the Box

Rating is 5 out of 5

WordPress: The Missing Manual: The Book That Should Have Been in the Box

2
WordPress All-in-One For Dummies

Rating is 4.9 out of 5

WordPress All-in-One For Dummies

3
Professional WordPress: Design and Development

Rating is 4.8 out of 5

Professional WordPress: Design and Development

  • Wrox Press
4
WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

Rating is 4.7 out of 5

WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

5
Wordpress for Beginners: 3 Books in 1- A Comprehensive Beginners Guide+ Tips and Tricks+ Simple, Effective and Advanced Strategies to Build a Beautiful WordPress Website

Rating is 4.6 out of 5

Wordpress for Beginners: 3 Books in 1- A Comprehensive Beginners Guide+ Tips and Tricks+ Simple, Effective and Advanced Strategies to Build a Beautiful WordPress Website

6
WordPress 5 Cookbook: Actionable solutions to common problems when building websites with WordPress

Rating is 4.5 out of 5

WordPress 5 Cookbook: Actionable solutions to common problems when building websites with WordPress

7
WordPress in easy steps

Rating is 4.4 out of 5

WordPress in easy steps

8
WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

Rating is 4.3 out of 5

WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

9
Building Web Apps with WordPress: WordPress as an Application Framework

Rating is 4.2 out of 5

Building Web Apps with WordPress: WordPress as an Application Framework

10
1-Hour WordPress 2021: A visual step-by-step guide to building WordPress websites in one hour or less!

Rating is 4.1 out of 5

1-Hour WordPress 2021: A visual step-by-step guide to building WordPress websites in one hour or less!

11
Professional WordPress Plugin Development, 2nd Edition

Rating is 4 out of 5

Professional WordPress Plugin Development, 2nd Edition

12
WordPress For Dummies (For Dummies (Computer/Tech))

Rating is 3.9 out of 5

WordPress For Dummies (For Dummies (Computer/Tech))

What happens to scheduled posts and events during maintenance mode?

During maintenance mode, scheduled posts and events may be affected depending on the platform or website being maintained. Generally, these are the possible scenarios:

  1. Posts being published during maintenance: If a scheduled post or event is set to go live during maintenance, it may not be published as expected. The platform might temporarily halt scheduling features, resulting in the delay of posts until the maintenance mode is lifted.
  2. Posts published before maintenance: If a scheduled post or event is published before the maintenance starts, they will most likely remain visible and accessible during maintenance. However, the ability to interact with them, such as commenting or RSVPing, might be limited or temporarily unavailable.
  3. Temporary unavailability of scheduled posts or events: In some cases, the scheduled posts or events might become temporarily unavailable during maintenance. The platform may display a maintenance message or an error page instead of the desired content.


It is important to note that the specific behavior during maintenance mode may differ based on the platform or website in question. It's recommended to check the platform's documentation or reach out to their support for precise information on how scheduled posts and events are handled during maintenance.

Are there any plugins that allow you to display social media links on your maintenance mode page?

Yes, there are several plugins available that allow you to display social media links on your maintenance mode page. Some popular options include:

  1. SeedProd: It is a popular maintenance mode and coming soon page plugin that allows you to easily add social media links to your maintenance page. It offers various customization options for social media icons and their placement on the page.
  2. Coming Soon Page and Maintenance Mode by WPBeginner: This plugin offers a simple and easy way to create a maintenance mode page with social media links. You can add social media icons and link them to your social media profiles.
  3. Maintenance Mode by WP Maintenance: This plugin provides a maintenance mode page with the option to add social media links. It allows you to customize the appearance of your maintenance page and include social media icons for users to connect with you.
  4. Under Construction Page: This plugin offers a range of customization options for maintenance mode and coming soon pages, including the ability to add social media links. You can easily add social media icons and link them to your profiles.


These plugins provide a user-friendly interface to set up your maintenance mode page and add social media links, allowing visitors to stay connected with your social media accounts while your site is under maintenance.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

To implement a dark mode toggle for a WordPress site, you can follow these steps:Install a dark mode plugin: There are several plugins available that offer dark mode functionality for WordPress. You can search for &#34;dark mode&#34; in the WordPress plugin re...
To get Instagram out of dark mode, you can follow these steps:Open your device&#39;s settings.Look for the &#34;Display&#34; or &#34;Appearance&#34; option and tap on it.Find the &#34;Dark Mode&#34; or &#34;Night Mode&#34; settings and turn it off.Instagram sh...
To put WooCommerce in maintenance mode, you can follow these steps:Create a child theme: It is always recommended to create a child theme before making any changes to your WooCommerce theme. This way, your changes won&#39;t be overwritten during theme updates....
To set up and customize a headless WordPress backend for a mobile app, you can follow the steps below:Install and set up WordPress: First, you need to install WordPress on a server or use a web hosting service that supports WordPress. You can download the Word...
Do you know that WordPress.com and WordPress.org are literally two very completely different platforms? Typically newcomers confuse WordPress.com and WordPress.org, which leads them to decide on the improper running a blog platform for his or her wants. Even ...
Have you ever ever wished to cover a weblog put up out of your WordPress homepage or weblog archive web page? Whereas you may make WordPress posts password protected or non-public, in some instances you could merely wish to cover the put up out of your homepa...