Testing New Wordpress Theme

Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
You'll need to set it up completely separate on another subdomain/domain with it's own database.

Or, install it locally on your own computer and use your hosts file to point the domain to a local address and then you can set up the website on the correct domain without effecting the live site.
 
Associate
Joined
1 Dec 2002
Posts
1,073
Location
Portrush, N.Ireland
Hi,
There is a live preview option on the installed themes in the themes page on wordpress. Dashboard-> appearance ->themes.
I'm not sure how exact it is though compared to using a seperate domain and trying it!
 
Soldato
Joined
23 Dec 2009
Posts
3,242
Location
Earth
Install XAMPP on your local machine, get a copy of your site, a dump of your DB and you can test everything offline to see how it'll impact.

There are many guides available on the web.
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
  • Log into your Cpanel
  • Create a subdomain. that is used for accessing the testing site. For example testsite.example.com.
  • Go to your File Manager. Make sure that you select Show Hidden Files when you select the directory to be opened.
  • Copy your Wordpress Files from your current directory to the document root directory created for your subdomain. The root directory usually is the same name as the subdomain that was created. Also, click on the folder that contains your WordPress installation and copy the .htaccess file. This file needs to reside in the same location where you have copied your WordPress files or at the root of the new location. The .htaccess file may contain important references to your current WordPress installation. Depending on your installation setup, you may need to look for this file in the root of the account. For example, InMotion Hosting normally uses a document root of "public_html." Check this location for the .htaccess file if you did not find one in the original installation location for your WordPress site.
  • duplicate-WordPress-site-for-testing-select-all
  • Select all the WordPress files.

This will mean it still uses the same database as the live website and there's a very good chance that any changes you make to the test site will break the live site.

If you follow the steps above, you also need to make a copy of the database and edit the wp_config.php file to change the site to use the new db.
 
Permabanned
Joined
9 Aug 2008
Posts
35,707
This will mean it still uses the same database as the live website and there's a very good chance that any changes you make to the test site will break the live site.

If you follow the steps above, you also need to make a copy of the database and edit the wp_config.php file to change the site to use the new db.

This 100%. Never play with a live site!
 
Back
Top Bottom