If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Different body background color for each category page

Different body background color for each category page

Locked

Started by je2009 on 12 Aug 2009, 11:40 PM · Views: 2,094

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 Aug 2009, 11:40 PM
#1
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Different body background color for each category page

Hello,

I looked every where and can't figure out how to change the background color depending on the category selected.

If I change the body color, it changes globally for all pages. I want specific category pages to have a specific backgrounds colors/image, can this be done? if so how?

14 Aug 2009, 1:48 AM
#2
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Re: Different body background color for each category page

This is something very simple that is often overlooked.

You need to create a new style sheet for each category. The name of the file is the key and will be based on the category id. To change the background of category ID 1, create a style sheet named c_1.css and include only the styles that you want to change.

The same principal can be applied to tjust about any page in your shop. This is explained in the css readme file in the default template css folder.

15 Aug 2009, 3:05 AM
#3
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Re: Different body background color for each category page

Thank you!

That is exactly what I needed!

JE