| |

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

  • | |

    The Mac is Just Another Computer

    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! Those of you who’ve known me for a while know I used to take a hard line against Apple. It…

  • |

    Fix wp_nav_menu on Custom Type Archives in WordPress

    Recently I was working with an issue in WordPress where the site’s menu was not showing up on an archive page for one of my custom post types. There were a few troubleshooting things I tried, including the most common recommendation, use theme_location instead of menu when referencing the menu in your theme (code after…

  • My Slides from PABUG 2012

    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!Here you go! My slides from my talk, “Using PHP to Create a Web-­Based Mobile Banner Application” from @PA_BUG are available…

  • My Thoughts on the Coin (a Digital Credit Card)

      Yesterday on Twitter, I saw @ugmonk tweet saying he had just pre-ordered his @coin. Curious, I clicked to see what it was. I watched the quick 2 minute video (linked after the jump) and was sold! I pre-ordered mine right then and there. The link spread like wild fire across social networks and everyone…

  • |

    Make an Easy Membership Site with WordPress and Patreon

    This week I wrote about how I’m doubling down on Patreon to deliver more quality content to my backers. Well, things have just gotten a lot easier for me, because their timing is impeccable. Patreon has recently release a WordPress plugin that allows you to take posts on your blog and make them viewable to…