Boutique web Design | Boutique Website Templates | Search Engine Optimization | Green Web Hosting | Shopping Cart Software | Turnkey Boutiques
wahm web design | turnkey websites | boutique web design
view cart
HomeServicesPortfolioPricingFAQsTurnaround TimesBusiness ResourcesSupportContact Us

boutique web design services
Custom Boutique Web Design
Boutique Website Templates
Turnkey Boutiques
Scrapbook Style Websites
Shopping Carts and Hosting
Search Engine Optimization
Website Maintenance
Website Add-Ons
Logo and Print Design
Photo Services
Printing Services
Newest Additions


E-Store Package Details
Pricing
FAQs
Turnaround Times
Business Resources
Waiting List
Design Process
About Us
Feedback
Affiliate Program
Make a Payment
Font Samples
Join Our Newsletter
Contact Us
Links & Resources
Terms and Policies

green web hosting

Portal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

Knowledgebase
You are here: Portal Home > Knowledgebase > Using more than one template, and creating multiple custom templates

Using more than one template, and creating multiple custom templates

You can use different templates on different pages of your site. You may choose to use the Blue Top Bar template on the Catalog pages, and maybe the Green Top Bar template on the home page. That is fine and you can do this by choosing your desired template while editing the appropriate page (the catalog page, or your contact page, etc. all have options for which template to use)

However you may wish to use multiple CUSTOM templates and this is certainly possible. You will need to add your custom template that will be in use by default into the Custom Template box in the Template area of the admin. So any pages where you do not choose a specific template, will use this main custom template. Then to create additional custom templates for use on specific pages, follow these instructions:

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:

include("home/USERNAME/public_html/enc/somefile.php");

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 in your store admin.

2. Follow the instructions below when creating the template:

  • Do NOT use the %CODE% value - instead, use the actual page name.
  • You must include the whole PHP path if multiple pages are to be used.
  • The template file should be named with the template's name, where any spaces are noted as underscores. For example, if you wish to call your template "Blue Moon", name it "Blue_Moon.htm".
  • Template files must end in .htm
  • Include absolute image paths (ie. http://yoursite.com/images/picture.gif) instead of relative ones (ie. images/picture.gif) in 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: 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 start with.



Was this answer helpful?

Add to Favourites
Print this Article


Why Choose Us?Business ResourcesDesign ProcessFeedback
Copyright © 2004-2010 Red Peach Designs. All rights reserved. | Terms and Policies | Links
No part of this website may be copied or redistributed without prior written consent of the owner.
Boutique Web Design | Boutique Website Templates | Custom WAHM Web Design | Turnkey Boutiques for Sale | 3DCart Web Design