{"id":6361,"date":"2020-04-14T15:00:42","date_gmt":"2020-04-14T13:00:42","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=6361"},"modified":"2022-02-01T11:18:02","modified_gmt":"2022-02-01T10:18:02","slug":"enable-wordpress-maintenance-mode","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/enable-wordpress-maintenance-mode\/","title":{"rendered":"How to Enable WordPress Maintenance Mode"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]There are many different reasons to build a website. You might need an outlet to air some of your thoughts on things you find important. A website can also be a major cog in your business\u2019 marketing machinery. You can have a website as a central part of your business model like online stores do. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You can do many, many more things with a website \u2014 if people can see and use it. And that\u2019s why it\u2019s ironic that one of the major things you as a website owner or administrator have to know is how and when to prevent people from seeing and using your website. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You should know why, when, and how to enable WordPress maintenance mode on your website. We\u2019ll explain it by covering these topics:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#the-importance-of-maintenance-mode\">The Importance of Maintenance Mode<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#enable-maintenance-mode-using-a-plugin\">Enable Maintenance Mode Using a Plugin<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#enable-maintenance-mode-with-custom-code\">Enable Maintenance Mode With Custom Code<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"the-importance-of-maintenance-mode\"><\/a>Why Is It Important to Be Able to Enable Maintenance Mode on Your WordPress Website?<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-1.png\" class=\"attachment-full size-full\" alt=\"Enable Maintenance Mode\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-1.png 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-1-300x169.png 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-1-620x350.png 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When your website is in <a href=\"https:\/\/qodeinteractive.com\/magazine\/briefly-unavailable-for-scheduled-maintenance-wordpress-error\/\">maintenance mode<\/a>, it\u2019s almost as if you\u2019re putting it aside, and showing your website visitors a splash page instead of it. <strong>While the visitors are viewing that page, you can do pretty much whatever you want with the website far away from the visitors\u2019 eyes<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The reason why it\u2019s important to know how to put your website into maintenance mode is simple \u2014 <strong>you want your website to be out of bounds while you\u2019re doing things to it<\/strong>. When you\u2019re updating your website, customizing <a href=\"https:\/\/qodeinteractive.com\/theme-category\/online-store-wordpress-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">your online store theme<\/a>, or doing anything else that might cause visitors to reach a poorly functioning website, <strong>it\u2019s much better to tell them to come back in a couple of minutes when it\u2019s all done<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you\u2019re plugging holes in your website\u2019s security or dealing with a safety issue, it\u2019s even more important to prevent people from reaching it. <strong>That\u2019s what maintenance mode does, and it\u2019s why WordPress has it as a built-in feature \u2014 whenever you update WordPress itself, WordPress will put your website into maintenance mode automatically<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]But the problem with WordPress\u2019 built-in maintenance mode is that you can\u2019t pull it up whenever you need it. It only works when updating something through the WordPress core. <strong>When that isn\u2019t the case, you can use two different methods to put your website into maintenance mode<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"enable-maintenance-mode-using-a-plugin\"><\/a>Enable Maintenance Mode Using a WordPress Plugin<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode.png\" class=\"attachment-full size-full\" alt=\"Enable Maintenance Mode\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode.png 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-300x169.png 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/Enable-Maintenance-Mode-620x350.png 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>The safest method to get maintenance mode at your command is by using a plugin<\/strong>. You can take your pick of plugins over on WordPress.org \u2014 there are many of them, they are as <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-install-a-wordpress-plugin\/\">easy to install as any other plugin<\/a>, and they often have additional functionalities or options.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To make things easier, we\u2019ll quickly walk you through two maintenance mode plugins: the <a href=\"https:\/\/wordpress.org\/plugins\/coming-soon\/\" target=\"_blank\" rel=\"noopener noreferrer\">Coming Soon Page, Under Construction &amp; Maintenance Mode<\/a> by SeedProd, and <a href=\"https:\/\/wordpress.org\/plugins\/maintenance\/\" target=\"_blank\" rel=\"noopener noreferrer\">Maintenance<\/a> by WP Maintenance.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">The Coming Soon Page, Under Construction &amp; Maintenance Mode by SeedProd<\/h3>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;24px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Coming-Soon-Page-Under-Construction-Maintenance-Mode-by-SeedProd.jpg\" class=\"attachment-full size-full\" alt=\"Coming Soon Page, Under Construction &amp; Maintenance Mode by SeedProd\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Coming-Soon-Page-Under-Construction-Maintenance-Mode-by-SeedProd.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Coming-Soon-Page-Under-Construction-Maintenance-Mode-by-SeedProd-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Coming-Soon-Page-Under-Construction-Maintenance-Mode-by-SeedProd-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After you install the plugin, you should aim straight for its Settings and set up all the important elements. SeedProd\u2019s plugin comes in a Lite version, which is free to use, and a Pro version which requires payment. <strong>The free version will be enough to set up your maintenance mode page and turn it on<\/strong>. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After you navigate to the SeedProd menu in the dashboard and click the \u201cSettings\u201d item, you\u2019ll have access to several tabs of options:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>The Content tab<\/strong>, where you do everything from enabling the mode to adding a message to the page and SEO elements to the header.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-The-Content-tab.jpg\" class=\"attachment-full size-full\" alt=\"The Content tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-The-Content-tab.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-The-Content-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-The-Content-tab-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>The Design tab<\/strong>, where you can set the appearance and behavior of your page as well as preview the pre-made themes that are available with the Pro version.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-The-Design-tab.jpg\" class=\"attachment-full size-full\" alt=\"The Design tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-The-Design-tab.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-The-Design-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-The-Design-tab-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>The Subscribers tab<\/strong>, which is a Pro feature that helps you build an email list thanks to lots of third-party tools.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-The-Subscribers-tab.jpg\" class=\"attachment-full size-full\" alt=\"The Subscribers tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-The-Subscribers-tab.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-The-Subscribers-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-The-Subscribers-tab-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>The Advanced tab<\/strong>, the place where you can enable the full lockdown of your website by including all the URLs in those that replace the splash image.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-The-Advanced-tab.jpg\" class=\"attachment-full size-full\" alt=\"The Advanced tab\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-The-Advanced-tab.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-The-Advanced-tab-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-The-Advanced-tab-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>The Live Preview tab<\/strong>, where you can see what your website will look like while under maintenance.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]You\u2019ll only need four out of these five tabs to put your website into maintenance mode. <strong>You can do most of it from the Content tab, actually<\/strong>. The Pro version of the plugin includes access to stock photos and themes, making it even easier to create the perfect maintenance mode page.[\/vc_column_text][vc_empty_space height=&#8221;81px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;84px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Maintenance by WP Maintenance<\/h3>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;24px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Maintenance-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Maintenance Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Maintenance-Plugin.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Maintenance-Plugin-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Maintenance-Plugin-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The Maintenance plugin doesn\u2019t offer much variety when it comes to basic options \u2014 <strong>you\u2019ll find mostly the same options you can find in SeedProd\u2019s plugin<\/strong>. The options are organized in sections instead of tabs. Below the big on-and-off toggle, you\u2019ll find:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>General settings<\/strong>, which include options for the page title, headline, footer, logo, background image, and plugin integrations.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Maintenance-Plugin-General-settings.jpg\" class=\"attachment-full size-full\" alt=\"Maintenance Plugin General settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Maintenance-Plugin-General-settings.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Maintenance-Plugin-General-settings-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Maintenance-Plugin-General-settings-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Ready to use themes<\/strong>, which is the section for the premium maintenance page themes you can buy.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Maintenance-Ready-to-use-themes.jpg\" class=\"attachment-full size-full\" alt=\"Maintenance Ready to use themes\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Maintenance-Ready-to-use-themes.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Maintenance-Ready-to-use-themes-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Maintenance-Ready-to-use-themes-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>A Custom CSS field<\/strong>, where you can enter custom CSS.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Maintenance-Custom-CSS-field.jpg\" class=\"attachment-full size-full\" alt=\"Maintenance Custom CSS field\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Maintenance-Custom-CSS-field.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Maintenance-Custom-CSS-field-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Maintenance-Custom-CSS-field-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Page exclusions<\/strong>, the section where you can exclude different posts, pages, products, and templated from being blocked by the maintenance page.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;12px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Page-exclusions.jpg\" class=\"attachment-full size-full\" alt=\"Page exclusions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Page-exclusions.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Page-exclusions-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Page-exclusions-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>What makes this plugin stand out is the integration options it offers<\/strong>. You can, for example, integrate it with the <a href=\"https:\/\/qodeinteractive.com\/magazine\/guide-to-amelia-wordpress-booking-plugin\/\">booking plugin Amelia<\/a> and have events and appointments shown on your maintenance page. You can also do the same with certain kinds of forms.[\/vc_column_text][vc_empty_space height=&#8221;80px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;bridge-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"enable-maintenance-mode-with-custom-code\"><\/a>Enable Maintenance Mode in WordPress With Custom Code<\/h2>\n<p>[\/vc_column_text][vc_column_text]There are some places in your WordPress website you can rightfully treat as your playground and experiment with them. <strong>The theme\u2019s <em>functions.php<\/em> file isn\u2019t one of them, but it is a place where you can use custom code to put your website into maintenance mode<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Whatever you\u2019re doing with it should be preceded by creating a backup of your website. It would also be a good idea to <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-child-theme\/\" target=\"_blank\" rel=\"noopener noreferrer\">use a child theme<\/a> when making any changes to your theme. Otherwise, any change would be deleted with the next theme update. With that taken care of, you can go to Appearance &gt; Theme Editor and find the functions.php file there. Add the following code to the bottom of the file:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/ Activate WordPress Maintenance Mode\r\nfunction wp_maintenance_mode() {\r\nif (!current_user_can('edit_themes') || !is_user_logged_in()) {\r\nwp_die('&lt;h1&gt;Site Under Maintenance&lt;\/h1&gt;&lt;br \/&gt;Please check back later.');\r\n}\r\n}\r\nadd_action('get_header', 'wp_maintenance_mode');<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Enable-Maintenance-Mode-in-WordPress-With-Custom-Code.jpg\" class=\"attachment-full size-full\" alt=\"Enable Maintenance Mode in WordPress With Custom Code\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Enable-Maintenance-Mode-in-WordPress-With-Custom-Code.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Enable-Maintenance-Mode-in-WordPress-With-Custom-Code-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Enable-Maintenance-Mode-in-WordPress-With-Custom-Code-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]You can customize the \u201cUnder Maintenance\u201d and \u201cPlease check back later.\u201d copy and change it into something you\u2019d like to see on your website. The resulting page will look pretty basic \u2014 you can see it by logging out of your site or visiting it in your web browser\u2019s private mode. [\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Under-Maintenance.jpg\" class=\"attachment-full size-full\" alt=\"Under Maintenance\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Under-Maintenance.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Under-Maintenance-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Under-Maintenance-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you know how to code, however, you can customize the page to look as good as it does with a plugin. [\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]As a useful function of WordPress, maintenance mode is one of the very basic tools website administrators have in their toolbelt to ensure a consistent quality of user experience. There\u2019s no reason to let your website visitors access a mangled, barely functioning version of your website. Why not mesmerize them with a perfectly designed splash page that will greet and inform them while you\u2019re doing some important work on the website? There\u2019s more than enough plugins to help you do it if you don\u2019t want the basic look and possible complications you get from the manual method. [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Need to enable maintenance mode on your WordPress website? Here&#8217;s how you can prevent visitors from stumbling onto your website while you&#8217;re working on it.. <\/p>\n","protected":false},"author":9295,"featured_media":6395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[15,4,13],"class_list":["post-6361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-plugins","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/9295"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=6361"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6361\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/6395"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=6361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=6361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=6361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}