WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] customized maintenance mode (10 posts)

  1. fabzy
    Member
    Posted 2 years ago #

    Hi guys
    Waiting for my website to be ready, I would like to show a custom page, (a picture for example )instead of the maintenance mode message.( i'm using the "maintenance mode" pluggin v.5.4)
    I dont want a countdown or the standard message, just want to display an image with a logo.
    Couldnt find a way to do this, I'm sure its obvious for you, it isnt for me. Is there an easy way to do it? (Im a beginner in wordpress)
    Thanx

  2. Luca Hammer
    Member
    Posted 2 years ago #

    Go to Plugins>Editor, choose the maintenance mode plugin and find the right place to edit stuff.

    Or use a different plugin.

  3. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    One does not need a plugin for maintenance mode. Maintenance mode is simply a file in the root named .maintenance. The file should include this PHP at the very top (for no set time):

    <?php $upgrading = time(); ?>

    and this at the very bottom:

    <?php die(); ?>

    In between those add valid HTML with what you want in it to the .maintenace file. Test before using on server.

    Note: I have had no issues with many sites when this process for upgrade is followed using FTP:

    1. Backup site fully and also database.
    2. Deactivate all plugins.
    3. Switch to (unedited) default theme.
    4. Upload .maintenance file.
    5. Use FTP to update core WP files, theme, or plugins to latest versions carefully noting any custom content and replacing. NOTE: The folder wp-content contains your themes and plugins, do not replace this folder, just remove specific folders within that are related to your theme or plugins that need updating and upload new versions. Ensure compatability of all plugins with version of WP and your theme first!
    6. Remove .maintenance file.
    7. Login admin, activate theme and test. Activate plugins ONE at a time, test. Make sure that any plugins that are complimentary to another are activated in proper order.

    All done.

    Has never failed for me.

    If failure: Upload .maintenance file right away. Create new db in host and import backup to it. Remove files using FTP (except .maintenance file) and put back old files making sure to update db strings in wp.config.php. Remove .maintenance file. Run site.

  4. Nasir Zia
    Member
    Posted 2 years ago #

    Whats your email.
    i can send you a premium plugin which i normally use!

  5. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    .maintenace mode is a PHP function and actually is used for PHP sites, which WordPress happens to use. Again, no plugin needed nor would I recommend using one.

  6. fabzy
    Member
    Posted 2 years ago #

    Thank you for your answers. Where can I find the .maintenance file? it doesnt show up on my ftp.

  7. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Create it.

  8. fabzy
    Member
    Posted 2 years ago #

    Ok fellows
    I did create the .maintenance file and my picture shows up on the public page. It also appears on my private page...

    this is the code I used in the .maintenance file :
    <body>
    <div style="text-align: center;">
    <img src="wp-content/pizza.jpg">
    </img>
    </div>
    </body>

    If I remove the maintenance mode pluggin, how do I make my website private, while I'm working on it?
    Dont you think there is a file in this pluggin, where I can add the precedent code instead of the standard maintenance message?

  9. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    This does not make your site public or private it makes it unaccessible (and visitors see your .maintenance file's html).

    I have clearly outlined in above how to use a .maintenance file.

    Also, you should wrap above in <html> tags and can add a <head>.

  10. fabzy
    Member
    Posted 2 years ago #

    All good this works thanks !

Topic Closed

This topic has been closed to new replies.

About this Topic