Forums / Templates, Stylesheets, Page Layout / Custom Template Creation

Custom Template Creation

Locked

Started by thirdrock on 21 Mar 2007, 11:58 PM · Views: 1,236

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Mar 2007, 11:58 PM
#1
thirdrock avatar

thirdrock

New Zenner

Join Date:
Mar 2007
Posts:
16
Plugin Contributions:
0

Custom Template Creation

Hi! Firstly, let me say thank you for such an informative site. When I first started reading, I didn't even understand some of the questions, let alone the answers, but its starting to make sense.

Originally I thought that I would only need to create a custom template if I wanted to do weird and wonderful things to change zencart. However from further reading, I am now assuming that I should do this even if my customisations are fairly basic (ie renaming "page 2" to something else). Is this right? It sounds rather scary!!

Thanks
Tina

22 Mar 2007, 1:20 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: Custom Template Creation

Any customizations should be made using your own custom template and the overrides system.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Mar 2007, 3:49 AM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Custom Template Creation

You're life will be much easier if you use the override system. It's not as scary as it might seem, but everyone starts out :shocking: over it.

To create a very basic custom template (you can build from there), you need:
includes/languages/YOUR_TEMPLATE/english.php
includes/languages/english/YOUR_TEMPLATE/index.php
includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
includes/templates/YOUR_TEMPLATE/template_info.php
includes/templates/YOUR_TEMPLATE/common/tpl_header.php
includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
includes/templates/YOUR_TEMPLATE/images/logo.gif
includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Any where you see a /classic/ folder, you can create a folder for your custom template. Copy the required files from /classic/, /template_default/ or the main folder (like /english/).

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

22 Mar 2007, 5:24 AM
#4
thirdrock avatar

thirdrock

New Zenner

Join Date:
Mar 2007
Posts:
16
Plugin Contributions:
0

Re: Custom Template Creation

Thanks so much Kim and Mary Ellen. You want to know anything about general insurance in Australia - I'm your gal, but coding and programming - eeek!!!

I've tried to create a new folder in includes/templates, however it created the folder a couple of layers up, in the (I guess) root directory. I'm guessing from your response, Mary Ellen, that it needs to be in includes/templates. I was in includes/templates when I created it, so I'm not sure why it didn't create there. Does anyone have any clues?

Thanks
Tina

22 Mar 2007, 5:37 AM
#5
thirdrock avatar

thirdrock

New Zenner

Join Date:
Mar 2007
Posts:
16
Plugin Contributions:
0

Re: Custom Template Creation

Please ignore my last request for help - I tried it again and it worked this time. Obviously I did something wrong, but not sure what - and no doubt you'll hear from me again soon!

Thanks

Tina