Since I am constantly tweaking things here (this will settle down soon), I found myself looking for an easy way to temporarily take the site offline. I came across the Site Unavailable plugin. It did exactly what I expected it to do, but the simple <h3></h3> HTML that the plugin generated left a lot to be desired in terms of look and feel. I tweaked the file to add the site’s header and footer so that the unavailable message matches the rest of the site. Being new to WordPress and too lazy to debug the PHP error messages, I just suppressed them with an @. It works well with the default theme that I am using, but not quite right with the Coffee Cup theme that I was testing. Since you will not likely see the “Unavailable” message, here are screenshots of the original plugin look, the default theme look and the Coffee Cup look. You can download the modified file here. There is a slight problem with the mod: the navigation bar background color still shows. On the Site Unavailable blog, the author mentioned that he might add an option allowing an admin to see the site. This should be done with great care, since it is very easy not to realize that the site is still offline and leave it that way.
3 thoughts on “WordPress “Site Unavailable” Plugin Tweak”
Comments are closed.
One of the issues with improving the LAF (by adding header & footer) is that people use really divergent themes, often with non-standard usage of header.php and footer.php.
Personally when I used your custom changed to my site, it doesn’t look good on my site because I use a table layout and what should normally be in header is in my index.php as I didn’t want to break-up my table.
Themes like BionicJive should also suffer from similar issues.
So I will release an alternative version for people who want to experiment with improved layout.
The main version will still adhere to install-and-forget paradigm 🙂
Your concerns on enabling site access noted. I am thinking of providing some kind of reminder.
I tried your modified version but it only seems to pull the default header/footer vs the active theme, has anyone gotten it to work with their active theme ?
when i tried deleting the default theme, the plugin won’t work, only a blank page, doesn’t seem like a difficult task for a hacker to set it up so it pulls in the active theme header and footer