Testing a Template
If you want to test a new Site Builder template (or temporarily use a default template to rule out issues with a custom template), you can use the following to quickly adjust a page's template:
-
Open the page you want to test. For instance, if you want to test a new template on the catalog page, open the catalog.php page in the /public_html/ directory.
-
Find the line:
require("template/$themename");and just *above* that line, type:
if ($_SERVER['REMOTE_ADDR'] == "123.45.67.890") { $changetheme = "Gold_Top_Bar.htm"; $themename = $changetheme; }where "Gold_Top_Bar.htm" is the name of the template (in the /template/ folder) and "123.45.67.890" is your IP address. *
-
Save the file and reload it.
-
Now, when you go to the site, you'll see the template you referenced in step #2.
-
When you are finished testing, make sure you remove the code!!!
* To find your IP address, visit myipaddress.com. If you are testing on a localhost environment, your IP may reflect as "::1".