Plesk

How to customize the maintenance page created by WordPress in Plesk?

Question

How to customize the maintenance page created by WordPress in Plesk?

Answer

Maintenance mode pages can be customized on a per-domain basis, as well as by customizing the server-wide template.

To customize the maintenance page for a particular website

  1. Log into Plesk

  2. Go to WordPress, choose the WordPress installation maintenance page to be customized, and then click the image tune icon next to Maintenance mode

  3. Click the Customize button

  4. Navigate to wp-content/maintenance and edit the file template.phtml

  5. Click OK

To customize the maintenance page for all WordPress websites hosted on Linux Server

  1. Connect to the server via SSH.

  2. Create a backup of the current template:

    # mv /usr/local/psa/var/modules/wp-toolkit/maintenance/template.phtml{,.orig}

  3. Edit /usr/local/psa/var/modules/wp-toolkit/maintenance/template.phtml in a text editor. In this example, we are using the vi editor.

    # vi /usr/local/psa/var/modules/wp-toolkit/maintenance/template.phtml

To customize the maintenance page for all WordPress websites hosted on Windows Server

  1. Connect to the server via RDP.

  2. Create a backup of the current template %plesk_dir%varmoduleswp-toolkitmaintenancetemplate.phtml by right-clicking on the file and selecting Create a Copy.

  3. Edit %plesk_dir%varmoduleswp-toolkitmaintenancetemplate.phtml in a text editor.

Note: The default (or customized) server-wide maintenance page template is applied only to WordPress websites that had never been put in maintenance mode before. To apply it to a WordPress website that had already been put in maintenance mode, select Restore Default in the configuration menu for Maintenance mode

Additional Information

Customizing the maintenance page