PressTigers

Putting Your WordPress Site in Maintenance Mode

WordPress provides a feature of maintenance mode that blocks the access and halts the functions during updates. In order to put your website under maintenance mode, you need to create a temporary page with a custom message on it. This will let your website visitors know that your site is down for maintenance.

To create a temporary page with a custom message, you need to follow the steps mentioned below:

  1. Create a maintenance.php file
  2. Add the custom message in maintenance.php file
  3. Using <style> tag, apply styling (Theme styling is recommended)
  4. Place the maintenance file in /wp-content folder
  5. Add the following code in your Theme‘s functions.php file:
  6. Add the following code in wp-config.php file to enable/disable the maintenance mode:

You are done! Now, check your website URL. You will be redirected to a temporary page containing the custom message that your site is down for maintenance.

User Comments

2 thoughts on “Putting Your WordPress Site in Maintenance Mode

    Marius says:

    Great Article!

    Thanks

    Mahendra says:

    Informative post…I totally agree with the sentence “Putting Your WordPress Site In Maintenance Mode”.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get in Touch