Custom Maintenance Page for WordPress

WordPress is a great tool. It has its own way of managing updates to your website – and will switch to maintenance mode automatically.  Sometimes this is called an HTTP Status 503 Service Unavailable.

For the best user experience you can setup your own custom maintenance page – where you can show your brand, making it clear that this is planned maintenance and give your visitor some where else to go.

Here’s my current maintenance mode page click to see it in action.

Damiens WordPress Maintenance Mode Custom Maintenance Page for WordPress

Get some control – enable WordPress Maintenance Mode the right way.

Earlier this year I wrote about enabling WordPress Maintenance mode and how you can customise this yourself.

Create your own Maintenance Page

As you can already tell – a maintenance page is just a PHP file with HTML. Start your favourite editor (I use Coda) and create a file called maintenance.php.

maintenance.php  Custom Maintenance Page for WordPress

You need to have a bit of code at the top and the bottom of the page like this …

<!--?php $protocol = $_SERVER["SERVER_PROTOCOL"]; if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )         $protocol = 'HTTP/1.0'; header( "$protocol 503 Service Unavailable", true, 503 ); header( 'Content-Type: text/html; charset=utf-8' ); ?-->

So this top part does all the smart work for your server and WordPress to generate an Error 503 page.

After that … you can then add some HTML …


503 Service Temporarily Unavailable

<!--?php die(); ?-->

At the end of the document after you close the HTML make sure you have added

<!--?php die(); ?-->

Now save your maintenance.php file and upload it to the wp-content directory.

Top tips for Maintenance Pages

  • Embed your CSS styles in the HTML
  • Link to your social networks (Give visitors a destination)
  • Link to your mail list subscribe form (Promote deeper engagement)
  • Make your 503 Http status page cute

6540643319 7945715c3a b Custom Maintenance Page for WordPress

If you’d like some help to set this up in WordPress, please consider hiring me and I can add this to your site.

Tags: , ,

Read previous post:
Merry Christmas to everyone .. make the most of it

Merry Christmas … I found this quote recently and I think it's quite funny and timely ~Richard Lamm I hope...

Close