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
20
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

Android Developer KYC
Latest News

Google’s New Android Developer Verification: What You MUST Do

Big News for All Android Developers! If you create apps for the Google Play Store, you nee

SoftMaji InfoTech
24/09/2025
3
gemini-on-break
Latest News

Gemini is Currently on a Break – What Does This Mean?

If you are searching “Gemini is currently on a break”, you are not alone. Many people arou

SoftMaji InfoTech
04/09/2025
19
2
Latest News

iOS 18.5 vs. iOS 19: Full Comparison of Every Feature

Apple is always updating the software that runs on our iPhones. In 2025, we have two impor

SoftMaji InfoTech
10/07/2025
46
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 © 2016-2025. All Rights Reserved.