Setup a new WordPress Template for a live site

Posted on 2012-08-23
Last Modified: 2012-08-23
My client has a live website that is running a WordPress with a template that someone else made. The client has hired me to setup a different template.

What is a good way to try out different templates, and then customize the final template, without affecting the current live website? It will take a few days to finish the work, and during that time we'd like it so that the visitors only see the old template.

Thank you.
Question by:Lev Seltzer
    LVL 49

    Expert Comment

    by:Julian Hansen
    Make a copy of the site - setup a database and WP installation and play with it offline. When you are satisfied upload new template to existing site.

    Author Comment

    by:Lev Seltzer
    What is the best way to copy the existing data to the new database? Should I export? Backup? Something else?

    I assume I'll do the reverse when I am satisfied with the results.
    LVL 49

    Accepted Solution

    Follow these steps

    1. Create a new database on the server you want to test
    2. Create a user account for this database
    3. Export the full database from the current server but remove the use / create database options from the export
    4. Check the downloaded script and make sure use and create statements are not there
    5. Import data into new database created in 1
    6. Copy Wordpress files to new location
    7. Change configuration settings in new location to point to the database you created in 1 with the credentials you created in 2.

    There should be no need to reverse the process. You are testing a template - if you are happy with the template then you should be able to just install that template.

    Keep a backup of the database so that you can test the installation on the test server from scratch before you go to live i.e. if you have tested the template and you are satisfied restore the test server to the same state as the live and then test your installation process to make sure it works. Once that has been signed off make a backup of your live environment (so you can regress) and then install the new template.

    Author Closing Comment

    by:Lev Seltzer
    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
    The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now