Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Create a custom stylesheet for individual categories?

How to Create a custom stylesheet for individual categories?

Locked

Views: 1,609

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Mar 2008, 12:36 AM
#1
relspeedwagon avatar

relspeedwagon

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

How to Create a custom stylesheet for individual categories?

I've searched and found that if I label a stylesheet c_1.css it will change the style of a category. I've been testing it and I do not see any change. I don't know how this specifically works. If I have 5 main categories (each with sub categories that I'd like to take on the parent's style) and want to style them all individually, then would I need a c_1.css, c_2.css, and so on?

Basically I'd like to know how to name the stylesheets so I know which stylesheet applies to which category and how to make them take effect. So far I have had no luck figuring out either, despite my searching this forum and google. Please Help!

Thanks,
Arielle

30 Mar 2008, 6:08 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to Create a custom stylesheet for individual categories?

http://www.zen-cart.com/forum/showthread.php?t=41402
Previous thread, at above url, deals with same request
:smile:

31 Mar 2008, 10:20 PM
#3
relspeedwagon avatar

relspeedwagon

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

Re: How to Create a custom stylesheet for individual categories?

Thanks for the reply. I checked out the link and it's cool to know I can change entire templates but I just want to know how to get the CSS for a parent category to apply to the sub-categories. I've found other posts about this issue but haven't found any with a solution. Any advice would be great.

Thanks,
Arielle

15 Apr 2008, 2:06 PM
#4
projecth avatar

projecth

New Zenner

Join Date:
Jan 2008
Posts:
4
Plugin Contributions:
0

Re: How to Create a custom stylesheet for individual categories?

Hope this is the right place to post an extension to custom stylesheet issues...

I created a custom stylesheet, named it c_68_231.css and put it in my template's CSS folder. It did everything it was supposed to for that product's page, but it also changed the All Listing page, EZ-Pages, Shopping Cart, and Advanced Search page. It did NOT modify any other products' pages.

The noticeable component is the background image...it's showing up on all those other pages for some reason.

I'm using ZC 1.3.8, and the issue is the same in Safari, Firefox, and IE 6/7. I would put a link up to the site, but I've taken that CSS file out to avoid a jumbled looking live site.

Any ideas? Can I provide any further information?