• Hello. How do I change the design of the “Briefly unavailable for scheduled maintenance” message that appears when updates are run. I want to add some css, nice font etc. Anything but the current ugly layout. Can’t find how this is possible.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Thread Starter katmac_aus

    (@katmac_aus)

    Im looking for an option where I dont have to turn a maintenance mode plugin on or off. I want a way to change the appearance of that specific wordpress briefly unavailable message. That way as soon as it not needed, I dont have to switch maintenance mode off again. Is there a filter or something I can add to my themes file to edit that document or get it to use a new template instead?

    Hi @katmac_aus

    When site goes in maintenance mode then only load.php file is executed without any script or styling file and load.php is a WordPress core file. So if want to modify maintenance message you need to modify WordPress core PHP file which is not recommended as WordPress standard. if you still want to do styling of the maintenance message for your own site just open the following file using path /wp-includes/load.php and put your style in head section on line 200.

    e.g. I have put following style to modify the maintenance message:-
    `<style>
    body h1 {
    color: blue;
    font-size: 20px;
    font-style: italic;
    text-align: center;
    }
    </style>`

    But please note that the load.php is core WordPress file and your edits will be lost with next WordPress updates.
    Hope it will help for you.

    I found a really simple solution and thought it should be shared here on the official forums.

    All you need to do is put a maintenance.php file in the wp-content folder. If present, that file will be shown during maintenance mode, instead of the default message. Best of all, this file won’t be lost when you update your WP installation.

    Source: https://www.seedprod.com/how-to-create-custom-maintenance-mode-page-wordpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change design of maintenance message.’ is closed to new replies.