|
Search:
Advanced search
|
Browse by category:
|
Glossary | Contact Us |
Designing Your Custom Layout |
|
|
The templates that come with ShoppeGenie are very basic ones, with no images or real design features. You can certainly use these templates - or you can customize them and create your own templates. To do this: 1. Create a regular HTML file with the extension of .htm. Include the page names of the site codes within the HTML code, with a PHP path:<script language="php">include("sitebuilder/enc/somefile.php");</script> Where "somefile.php" is a file within the "enc" (or includes) directory, as shown in gray next to the site include name on the site codes page. 2. Follow the instructions below when creating the template:
If in doubt, make a copy of one of the existing templates and look at the HTML code to follow the same procedure. 3. For each .htm template file you create, you can create a matching .php file that shows all color values. This will serve as a file that allows the shop to update the link and button colors as they select a new template. You do not need to create a .php file for each template, but the link colors will not be updated if a .php file doesn`t exist (forcing the shop owner to select his or her own colors). The .php file should be named exactly as the corresponding .htm template file, except for the extension. Use an existing configuration file as a guide. For each value, replace only the color value within quotes. HINT 1: Are you still having problems creating custom templates? Try creating them as custom templates first, using the custom template box. Then after saving, copy the HTML code in the index.htm file and paste into a new template page. This auto-creates all the includes for you, so it's a lot easier to create. HINT 2: To reuse templates on multiple sites, be sure to use a variable path for images. In other words, instead of referencing them as "images/picture.gif" or "http://www.mysite.com/images/picture.gif", use: "<?php echo "$urldir/images/picture.gif"; ?>" Where $urldir represents the main domain. The whole path should be enclosed in a PHP echo tag. |
|
| Others in this Category | |
| Site Codes | |
| Customizing a template within the Admin Area | |
| Templates Includes | |