Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / New Template Creation Help

New Template Creation Help

Locked

Views: 2,801

Results 21 to 27 of 27
This thread is locked. New replies are disabled.
13 Aug 2007, 7:31 PM
#21
nick_sonick avatar

nick_sonick

New Zenner

Join Date:
Jun 2007
Posts:
37
Plugin Contributions:
0

New Template Creation Help

What do the header.php and the index.php files in the english folder do?

13 Aug 2007, 7:34 PM
#22
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: New Template Creation Help

They define the text that appears in the header, and in the category listings (index) in the centre column.

13 Aug 2007, 7:40 PM
#23
nick_sonick avatar

nick_sonick

New Zenner

Join Date:
Jun 2007
Posts:
37
Plugin Contributions:
0

Re: New Template Creation Help

Fantastic.

Thank you so much for your help!

I', just in the middle of installing Zen on my other site to test the template im gonna build, and hopefully everything will be okay :P

I'll keep you up to date, and thanks so much again!

13 Aug 2007, 8:38 PM
#24
nick_sonick avatar

nick_sonick

New Zenner

Join Date:
Jun 2007
Posts:
37
Plugin Contributions:
0

Re: New Template Creation Help

One more thing...

Which is correct:

includes/languages/english/sonick
or
includes/languages/sonick/english.php?

You have mentioned both locations in your previous posts.

Thanks!

13 Aug 2007, 8:42 PM
#25
Kim avatar

Kim

Obaa-san

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

Re: New Template Creation Help

You will use both directories depending on which file you are modifying.

The rule of thumb: The custom template directory to use is at the same level as the file you are modifying.

So - if you are modifying languages/english/header.php, you will put your customized copy in languages/english/YOUR_TEMPLATE/

13 Aug 2007, 9:15 PM
#26
nick_sonick avatar

nick_sonick

New Zenner

Join Date:
Jun 2007
Posts:
37
Plugin Contributions:
0

Re: New Template Creation Help

How would I frame the entire site in a table and centre everything?

Thanks.

14 Aug 2007, 12:46 AM
#27
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: New Template Creation Help

You wouldn't frame the entire site in a table... you would edit your /includes/templates/sonick/css/stylesheet.css to say something like

#mainWrapper {
width: 765px;
margin: auto;
}

(Add the width and margin to the existing #mainWrapper declaration; don't make a new one unless there isn't one yet.)

PS -
"Which is correct:

includes/languages/english/sonick
or
includes/languages/sonick/english.php?"

The first is a directory you will put files in; the second is a file (english.php) which will override the default /includes/languages/english.php.