WordPress Hosting Coupon Code | 3 Months | 100% OFF Get Offer

Three Quick Ways To Put A WordPress Site Under Construction

Moeez — June 26, 2018 4 Minutes Read

Today we’ll learn how to put your WordPress site in maintenance mode because whether it’s small or large, personal or business related, your WordPress website requires maintenance to keep performing optimally.

There are many reasons why you’d want to put your WordPress site under construction. Maybe you need to make some major changes or introduce a new feature on your website. Or, maybe there’s an error you need to fix or better yet you want to install a new theme, plugin, or update your website.

In all these cases, it’s a good idea to take your WordPress in maintenance mode to show your visitors a friendly notice instead of a malfuntcioning website.

1. Activate the Maintenance Mode

The first method is the simplest one. If you’re in a rush and you don’t need to design a specific landing page for the maintenance mode, the following function will be your savior. Copy and paste the following function into your functions.php file, change the message on the third line to whatever you like, and then save those changes.

After saving the changes, anyone who visits your website (except the admin, in this case) will be greeted with the message you wrote in the code above. That’s it; no settings, no images, no links.

However, most people would prefer a more attractive maintenance page, so if you want more control over the maintenance mode, read on.

2. Design an under construction page

While WordPress is updating your site, it will look for a maintenance.php file. If you have one in the wp-content folder, it will represent a maintenance page that will be displayed in front of visitors who opened any of the pages during the installation. This file is used just for safety reasons. While you’re doing the update, your site might become slower and even stop responding for a second.

under construction

This usually isn’t a big problem. But if you have a larger audience, that one second might hold dozens, if not hundreds of visitors. Don’t risk your credibility; create a file and let your visitors know that you’re updating WordPress and that everything will come back to life in a few minutes. Your site will look much better, and your visitors will see that you created a page for that purpose instead of letting them see an error.

The maintenance.php file is a temporary file, but it can still help you. Open wp-content folder, create a maintenance.php file and customize it to your likings. If you need an example on how to style the page, please see how to customize the file and quickly put your site in maintenance mode. There you will find the entire code for the page which you can quickly copy and modify to your likings and needs.

Want even more control over the maintenance mode page? Then you’ll want a plugin.

3. The free Under Construction Page plugin

We saved the best for last. The Under Construction Page is a free WordPress plugin you ’ll want to handle your maintenance pages.

The plugin is very easy to install and set up. If you are in a rush, it will take you less time to set up the Under Construction Page than to activate the maintenance mode we described earlier. And the differences are tremendous.

This free plugin will let you choose professionally designed templates for your Under Construction Page. Just choose the one you like and enjoy the new maintenance page. The developers are updating the plugin with new images about twice per month so you can always have the style you really like.

Putting a site under construction is as easy as pushing a button. You get to modify the content of the page, and even add social media icons which will connect you to your audience while your site is under repair. Want to whitelist specific users or user roles? You got it. Want to track the page with Google Analytics? Check. Do you want to style the page to fit your site better? Sure, use the custom CSS.

With Under Construction Page, you won’t need any special WordPress themes for the occasion. You won’t have to think about the maintenance mode ever again. Install the plugin and activate the button when you need one. Easy as that. Completely free.

Subscribe to Get a FREE WordPress Ebook Right in Your Inbox

WPblog provides the complete guide to launch your WordPress website completely FREE!

Moeez is ‘The’ blogger in charge of WPblog. He loves to interact and learn about WordPress with people in the WordPress community. Outside his work life, Moeez spends time hanging out with his friends, playing Xbox and watching football on the weekends. You can get in touch with him at moeez[at]wpblog.com.

THERE'S MORE TO READ

Newsletter