How to Develop a Theme on a Live Site in WordPress
A quick post to show what I just discovered. Recently I had a case where I needed to show a static coming soon page for non logged-in visitors, but had to show the fully working theme to admin users because the development was done live.
A little Googling got me to this WordPress Maintenance Mode Without a Plugin tutorial by Sivel. It’s a three parts, real quick tutorial that allows for:
- Maintenance mode both for a certain or indefinite duration.
- Style-able maintenance mode notification page.
- Show normal blog to logged-in users.
- Easily turned-off maintenance mode, since you just add a few files to the WordPress installation and can delete those when you’re done.
Another neat things is that it is done using a maintenance mode mechanism already built-in in WordPress (didn’t know it has that). It works just as expected and when the development is done I can remove the files (only two of them) and everything will be back to normal.
Additionally, another simple way to do this is to serve/create a different, maintenance style theme for non-logged in visitors. User Theme is a plugin that allows for that, but I have yet to test how it works.
I’m sure this is a pretty common situation, so how do you guys do it?