المشاركات

How to Display "Website Under Maintenance" Notification on Your Blog

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated
How to Display "Website Under Maintenance" Notification on Your Blog

Having a "Website Under Maintenance" notification can greatly improve the user experience on your blog by informing visitors about ongoing updates or issues. In this article, we'll guide you through adding a maintenance notification to your Blogger site.

  1. Access Your Blogger Dashboard:
    • Log in to your Blogger account.
    • Select the blog where you want to add the maintenance notification.
  2. Go to Layout:
    • Navigate to the "Layout" section from the left sidebar.
  3. Add a Gadget:
    • Click on "Add a Gadget" where you want the notification to appear (usually in the header or sidebar).
    • Choose the "HTML/JavaScript" gadget.
  4. Insert the Code:
    • Scroll down and copy the codes below and paste them into the gadget content box.
  5. Save and Arrange:
    • Save the gadget and arrange it to your preferred location.
    • Preview your blog to ensure the notification appears as expected.
<div id="maintenance-notification" style="display: none;">

<div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,1); z-index: 9999; color: white; text-align: center; padding-top: 20%;">
    <h2>Website Under Maintenance</h2>
        <p>We will be back soon!</p>
        <h2 id="timer"></h2>
    </div>
</div>
<!--[ Website Under Maintenance by BlogSeba ]-->

<style>
    #maintenance-notification {
        display: none;
    }
</style>

<script>
    // Set the end time for the maintenance
    var endTime = new Date("Jul 7, 2025 12:00:00").getTime();

    var maintenanceNotification = document.getElementById("maintenance-notification");
    maintenanceNotification.style.display = "block"; // Show the maintenance notification

    // Update the count down every 1 second
    var x = setInterval(function() {
        var now = new Date().getTime();
        var distance = endTime - now;

// Website Under Maintenance by BlogSeba

        var days = Math.floor(distance / (1000 * 60 * 60 * 24));
        var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
        var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
        var seconds = Math.floor((distance % (1000 * 60)) / 1000);

        document.getElementById("timer").innerHTML = days + "d " + hours + "h "
        + minutes + "m " + seconds + "s ";

        if (distance < 0) {
            clearInterval(x);
            maintenanceNotification.style.display = "none"; // Hide the maintenance notification
        }
    }, 1000);
</script>

Conclusion

By following these simple steps, you can keep your visitors informed about your site's status. This proactive approach helps maintain a good user experience even during downtime.

Copyright Warning!
Reproduction, duplication, or distribution of any part of this blog is strictly prohibited without permission. Legal action may be taken for any unauthorized use or reproduction.

Hello BlogSeba members, we have been writing articles on various topics since 2023. Thank you for being with us.

3 تعليقات

  1. not work..
    1. Bro increase the date, the date there is back date
  2. You couldn't see the result of the code because the timer in our JavaScript code was running behind time. We later extended it.
🌟 Attention, Valued BlogSeba Community Members! 🌟

We're delighted to have you engage in our vibrant discussions. To ensure a respectful and inclusive environment for everyone, we kindly request your cooperation with the following guidelines:

1. Respect Privacy: Please refrain from sharing sensitive or private information in your comments.

2. Spread Positivity: We uphold a zero-tolerance policy towards hate speech or abusive language. Let's keep our conversations respectful and friendly.

3. Language of Choice: Feel free to express yourself in either English or Hindi. These two languages will help us maintain clear and coherent discussions.

4. Respect Diversity: To foster an inclusive atmosphere, we kindly request that you avoid discussing religious matters in your comments.

Remember, your contributions are valued, and we appreciate your commitment to making our community a welcoming place for everyone. Let's continue to learn and grow together through constructive and respectful discussions.

Thank you for being a part of our vibrant community! 🌟
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.