• 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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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 2 years, 2 months ago by lcf.

    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 2 years, 2 months ago by Benedikt Ledl.
    Thread Starter catarinakubo

    (@catarinakubo)

    Thank you for the help!

    @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!

    make sure you have WordPress installation on charm.pt (I don’t think it is)

    cliente.charm.pt is not accessible

    Thread Starter catarinakubo

    (@catarinakubo)

    @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  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:[email protected]">[email protected]</a>
    
    ? ? ? ? ? </div>
    
    ? ? ? ? </div>
    
    ? ? ? </div>
    
    ? ? </body>
    
    </html>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Maintenance wordpress’ is closed to new replies.