Title: Maintenance wordpress
Last modified: January 11, 2023

---

# Maintenance wordpress

 *  [catarinakubo](https://wordpress.org/support/users/catarinakubo/)
 * (@catarinakubo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/maintenance-wordpress/)
 * Good afternoon
 * I started working on a website with domain and subdomain.
    The last programmer
   put the domain under maintenance and I can’t remove it, how do I do it?
 * There is no maintenance plugin and I can’t change the public_html
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmaintenance-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16362982)
 * it looks like a plain html page. It does not appear that you have a WordPress
   installation there.
 * you can check the `index.html` under public_html folder. WordPress use `index.
   php`
    -  This reply was modified 3 years, 4 months ago by [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/).
 *  [Benedikt Ledl](https://wordpress.org/support/users/benniledl/)
 * (@benniledl)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16362989)
 * There are several ways to enter a site into the maintenance mode.
 * If there is no maintenance plugin installed then maybe there is a .maintenance
   file in the site root. Just delete this file and the site should be online again.
 * Another option would be to add a maintenance function in the functions.php.
 * Go to your themes functions.php and on the first few lines there would be some
   code that puts the site into maintenance mode.
 * There are many different ways to code this function so you would have to search
   for a function that has a name that indicates that this is the right function.
 * One possible way would look like this:
 *     ```
       <?php
       function maintenace_mode() {
         if ( !current_user_can( 'administrator' ) ) {
           wp_die('Maintenance.');
         }
       }
       add_action('get_header', 'maintenace_mode');
       ?>
       ```
   
    -  This reply was modified 3 years, 4 months ago by [Benedikt Ledl](https://wordpress.org/support/users/benniledl/).
 *  Thread Starter [catarinakubo](https://wordpress.org/support/users/catarinakubo/)
 * (@catarinakubo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16363193)
 * Thank you for the help!
 * [@lcf](https://wordpress.org/support/users/lcf/) you were right, how can i remove
   this maintenance and put the page as homepage?
 * Since there is this domain and the subdomain, which is the real site cliente.
   charm.pt
 * Thank you!
 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16436276)
 * make sure you have WordPress installation on charm.pt (I don’t think it is)
 * cliente.charm.pt is not accessible
 *  Thread Starter [catarinakubo](https://wordpress.org/support/users/catarinakubo/)
 * (@catarinakubo)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16436870)
 *     ```wp-block-code
       @lcf yes it is not accessible only with pass and user. It is supposed to become a page within the charm.pt website how do I do it?
   
       I have to copy the code from the charm.pt index?
   
       index from charm.pt :
   
       <!DOCTYPE html>
   
       <html>
   
           <head>
   
             <title>Charm | Brevemente</title>
   
             <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   
             <meta name="robots" content="noindex" />
   
             <meta name="viewport" content="width=device-width, initial-scale=1" />
   
             <link href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;700;800&display=swap" rel="stylesheet">
   
             <style>
   
                 html {
   
                   font-family: 'Catamaran', sans-serif;
   
                   height: 100%;
   
                   color: #141414;
   
                 }
   
                 body {
   
                   text-align: center;
   
                 }
   
                 * {
   
                   padding: 0;
   
                   margin: 0;
   
                   box-sizing: border-box;
   
                 }
   
                 .page-index{
   
                   height: 100vh;
   
                   padding: 0;
   
                   margin: 0;
   
                   display: flex;
   
                   align-items: center;
   
                   justify-content: center;
   
                   background-repeat: no-repeat;
   
                   background-size: cover;
   
                 }
   
                 .page-logo img{
   
                   max-width: 240px;
   
                   margin-bottom: 12px;
   
                 }
   
                 .page-logo-secondary img{
   
                   max-width: 720px;
   
                 }
   
                 .page-content{
   
                   margin-top: 40px;
   
                   color: black;
   
                 }
   
                 .page-content h1{
   
                   text-transform: uppercase;
   
                 }
   
                 .page-content a{
   
                   color: black;
   
                   text-decoration: none;
   
                 }
   
             </style>
   
           </head>
   
           <body>
   
             <div class="page-index" style="background-image: url('./img/bg.jpg');">
   
               <div class="page-index-container">
   
                 <div class="page-logo">
   
                   <img src="./img/logo.png" alt="Charm Logo">
   
                 </div>
   
                 <div class="page-logo-secondary">
   
                   <img src="./img/vive.png" alt="Kubo Logo">
   
                 </div>
   
                 <div class="page-content">
   
                   <h1>Brevemente</h1>
   
                   <a href="mailto:geral@charm.pt">geral@charm.pt</a>
   
                 </div>
   
               </div>
   
             </div>
   
           </body>
   
       </html>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Maintenance wordpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [catarinakubo](https://wordpress.org/support/users/catarinakubo/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/maintenance-wordpress/#post-16436870)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
