Is it possible to edit a WordPress template while still keeping a Landing Page on the main address?

I'm currently building an online platform using a template from Theme Forest.

However I would like to keep a landing page to capture email sign-ups, since I'll take a few months to finish it.


Create a page to be your front page, then on the reading settings page select use a static front page then choose your page from the dropdown.

EDIT: A quick and dirty hack based on your comment would be to convert your static HTML page to PHP and use that as a template. You can easily convert your HTML file to PHP by changing the file extenstion to php.

So landing.html becomes landing.php.

Next add the following code to the very top of that file:

<?php /* Template Name: Temp Landing Page */ ?>

Pop the file in your theme folder along with any images etc. wp_content\themes\yourtheme

In the admin area, edit your page and on the right there should be a dropdown called template. Select the temporary template out of that list and hit save.

This method is not recommended at all for production sites but should be enough to get you up and running.

EDIT 2: The long term, "correct" option would be to set up a subdomain called http://test.yourdomain.com or http://dev.yourdomain.com and install another instance of WordPress on there while you practice and develop your site. You could then restrict access via the htaccess file based on IP. This method is dependent on your hosting options, you might be restricted on the number of databases. You could install your dev site to the same database with a different prefix dev_.

Alternatively you could install a web server on your local computer and host your dev site there. It would only be accessible to you but it is less risky than having a publicly accessible dev site.

I use a combination of the two for my sites.

  • A local web server for immediate debugging and coding.
  • A remote test domain for demoing the functionality and stability testing
  • A live site that I only apply code to when both me and the client are happy with the test one.

There are several web server packages available for local hosting, I use XAMPP on both my Mac and Windows PC. Dead easy to set up and low maintenance.

  • thanks for the info. How would I import a HTML page that I've created (themeforest.net/item/…) to Wordpress so that it appears on the dropdown? The page contains images, js files and so. Thank you.
    – bru1987
    Oct 27 '15 at 16:26
  • This site is a good starting place for learning to build themes correctly
    – Burgi
    Oct 27 '15 at 16:50
  • is there a way to "filter" the IP's that are not mine so that the visitor is redirected to the Landing Page, instead of using your hack (which is great I must say)?
    – bru1987
    Oct 27 '15 at 17:31
  • Not without it getting extremely messy and hacky. I've updated the answer with a better solution. A bit more of a faff to set up but will serve your needs better in the long run.
    – Burgi
    Oct 28 '15 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.