softmaji-header-wbg-min
softmaji-header-wbg-min
softmaji-blue-header-min
softmaji-blue-header-min
  • Home
  • Services
    • Website Designing
      • Responsive Website Design
      • Static Website Design
      • Website Redesign
      • Landing Page Design
    • Website Development
      • PHP Website Development
      • WordPress Website Development
      • Ecommerce Website Development
      • Custom Website Development
    • Digital Marketing
      • Google Adwords/PPC
      • Facebook Promotion
    • SEO Service
  • Trainings
    • Learn Web Development
    • Learn Graphics Design
    • Learn Business Communication Skills
  • Pricing
  • Portfolio
  • Events
  • Offers
  • Contact Us

How to enable maintenance mode in WordPress?

HomeHow to enable maintenance mode in WordPress?

Offer Expire Soon..


Only New User..


This article is a guide on how you can enable the maintenance mode in WordPress, and also how you can customize the page that WordPress displays when it is in the maintenance mode.

Table of Contents

Toggle
  • # Enabling the WordPress maintenance mode :
  • # Customize the WordPress maintenance mode message

# Enabling the WordPress maintenance mode :

By default, users will receive the following message when a WordPress site is in maintenance mode :

Briefly unavailable for scheduled maintenance. Check back in a minute.

Whenever WordPress does an update, the site needs maintenance and this is the most common scenario.

There are some different situations also, like during development and testing, you need to manually enable maintenance mode. To do this, perform the following steps :

1. Log in to your account via cPanel or SSH.

2. Use command prompt or cPanel File Manager and go to the directory where you have installed WordPress.

3. Now, by using the preferred text editor, create a file named as .maintenance.

Note: Ensure that the file name starts with a period (.) otherwise this procedure won’t work.

4. Copy and paste the following code into the .maintenance file :

 <?php

    $upgrading = time();

?>

5. Save all the changes to the .maintenance file.

6. Maintenance mode now gets activated for your site. If you wish to restore the normal site operation, then delete the .maintenance file.

# Customize the WordPress maintenance mode message

As we learned previously that WordPress displays a message ” Briefly unavailable for scheduled maintenance” when your site is in maintenance mode. But still, you can customize the page displayed by WordPress, when it is in maintenance mode.

Perform the following steps to do so :

1. With the use of SSH or cPanel File Manager, navigate to the wp-content subdirectory in the directory, where you have installed WordPress.

2. By using a text editor, create a file named as maintenance.php.

3. In this maintenance.php file, add the HTML or PHP code that you want to use when WordPress is in maintenance mode. After this, WordPress will use the maitenance.php file instead of displaying the default message.

Also Read :

1) How to add Google Analytics to WordPress with and without using plugin?

2) How to fix blank pages in WordPress?

Faizan Khan
16
Latest News
Prev PostHow to change the language for WordPress?May 14, 2024
Next PostHow to add Google Analytics to WordPress with and without using plugin?May 14, 2024

Related items

otpless-issue
Latest News

OTPLess Not Working? Here’s What Happened!

Imagine this: You run a business, and suddenly, your customers can’t log in to your websit

SoftMaji InfoTech
20/06/2025
8
Latest News

How To Install WordPress Blog?

Let’s see how to install WordPress blog on your WordPress hosting account. Let’s

Faizan Khan
14/05/2024
149
Latest News

How to Install a Theme in WordPress?

Steps to install a theme in WordPress: Log in to WordPress. Navigate to Appearance and cli

Faizan Khan
14/05/2024
135
softmaji-header-wbg-min
SoftMaji is one of the affordable web development company in the web development industry. You don’t have to go searching anywhere for finding a reliable web development partner because we have crafted web development solutions that can fill the void left by others in the market.
Services
  • News Portal Development
  • Custom Website Development
  • PHP Website Development
  • Ecommerce Website Development
  • WordPress Website Development
Shortlinks
  • Blog
  • Offers
  • Events
  • Pricing
  • Reviews
  • Portfolio
  • Our Team
  • Payment Options
  • Explore Packages
Company
  • FAQ
  • Careers
  • Sitemap
  • Feedback
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Refund And Cancellation
Contact Us
4/40 Vipul Khand , Gomti Nagar Lucknow
Uttar Pradesh 226010
Landline - +915223162418
Email - hello@softmaji.in
Office Time Mon - Sat
(10:00AM - 5:00PM)
Sunday Close
+91 9795405324
Lucknow , Uttar Pradesh
Copyright © 2022. All Rights Reserved.