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?
Views: 2,801
New Zenner
What do the header.php and the index.php files in the english folder do?
Totally Zenned
They define the text that appears in the header, and in the category listings (index) in the centre column.
New Zenner
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!
New Zenner
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!
Obaa-san
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/
New Zenner
How would I frame the entire site in a table and centre everything?
Thanks.
Black Belt
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.
Tell staff why this post should be reviewed.