Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Different body backgrounds and headers

Different body backgrounds and headers

Locked

Views: 1,664

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 Apr 2008, 1:09 PM
#1
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Different body backgrounds and headers

Hello,

In my shop I have 3 different categories. Each category I want to display with a different body background and a different header. Can any one help me with the code for that. I know how to do it for the general style sheet, I just don't know how to make I can apply different stylesheets for different categories.

Thank you in advance.

Juliet van Ree

21 Apr 2008, 1:44 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Different body backgrounds and headers

c_??_??.css

Name a stylesheet as above with only those things you are changing -
This is also outlined in the CSS_read_me.txt in your css folder

22 Apr 2008, 8:13 AM
#3
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Different body backgrounds and headers

Thank you very much. That is very helpfull.

I assume on the place of the questionmarks I have to fill in the categories? Can you please give me an example? Is it something like c_category_subcategory.css?

22 Apr 2008, 8:23 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Different body backgrounds and headers

When you navigate to a specific category on your site in the browser will be something like: index.php?main_page=index&cPath=65
For a sub-category - like this: index.php?main_page=index&cPath=1_4

So these become:
c_65.css
c_1_4.css

22 Apr 2008, 9:01 AM
#5
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Different body backgrounds and headers

Thank you very much!!! Now I understand