| |

Create a Temp/Splash Page in WordPress

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

Often times I will be working on a WordPress theme that I want to live test, but I don’t want to reveal it to the world yet. The solution would be to throw up a temp page while you work. However, you may have noticed that throwing an index.html file in the WordPress directory or similar solutions break WordPress. Today I’ll tell you how to get around that.

This solution is pretty simple. First you create the temp page, which will probably have reduced mark-up, CSS in the header, and the whole 9 yards as far as temp or splash pages go. Take that and make it a page template in the WordPress theme you’re working on (do that with the comment /* Template Name: Splash */ at the top of the page). Now make sure to add the 2 tags that make your page a WordPress ready page. Somewhere in the head, add <?php wp_head(); ?>. Right before the </body> tag, add <?php wp_footer(); ?>. Save it!

From there, go into your WordPress admin panel and create a page using that template. Then create a regular page; that will be where your blog posts show up (Just a title, no content needed here). Once you save them, go to Settings->Reading and Under “Front page displays” choose the radio button, “A static page.”  Make the front page your temp page and the blog posts page the second page you created.

splash screen

Your WordPress domain will now point to your temp page. Just remember the URL for the blog posts page so you can get in to view  the rest of your site while testing!

Similar Posts

  • |

    It’s Official! WordCamp Scranton is July 18th!

    I wrote this on the WordCamp Scranton blog originally. I am so excited to be organizing this event. The team and I are bound to make sure it’s a great event! After a few months of initial planning and venue hunting, we are happy announce that WordCamp is coming to Scranton, PA on July 18th! It will…

  • Uploading Images in PHP

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!After dabbling in PHP for some time, and writing an image upload script about 8 months ago, I would like to…

  • |

    Announcing WP in One Month WordPress Courses

    I started WP in One Month almost a year ago, and since then it’s gone through 2 major evolutions; I wanted to find the right model. The first was moving from live classes to live webinars. Today, I’m excited to announce the next one: the addition of online WordPress courses.

  • | |

    Random Code Generator 1.0

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!A couple of weeks ago, when I officially launched the redesign, I mentioned the forthcoming release of a plugin I wrote…

  • | | |

    The Web is Dead

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!In Wired Magazine’s latest issue they proclaim, “The Web is Dead. Long Live the Internet.” I was pretty intrigued by this and decided…