Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

DIFFERENT CATEOGORIES, SAME THEME, DIFFERENT COLOURS
 
shin_mangaman
Member
 
Total Posts:  55
Joined:  2008-09-17
 

Hi there!!! i have a problem…
i have one shop with 3 categories, and i have installed the MODERN THEME on it. i would like to have different colours for differents categories..it is possible?!?!  i have put on SKIN 3 different theme (THEME_CAT1 , THEME_CAT2, THEME_CAT3 and every theme as only different BODY_BG.GIF that change the backround colour) how can i tell that for example CAT1 have to use THEME_CAT1 ?!?!?! on admin panel i can change the DESIGN for each catoegories, but i cannot change the THEME (or the BODY_BG.GIF ), somebody can help me please?!?!?!?!?!?!? ^ ^
thank you,,,,bye bye i’hope you will answer!!!

Andrea

 
Magento Community Magento Community
Magento Community
Magento Community
 
shin_mangaman
Member
 
Total Posts:  55
Joined:  2008-09-17
 

No one can help me???? pleaseeeeeeeeeeeeeeeee ^ ^

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

In each of your category page, go to view source, in the body tag you will see something like this

(example from magento demo store)
<body class=” catalog-category-view categorypath-bed-and-bath category-bed-and-bath">

then use the last class or the one in the middle to create extra rule in CSS like so

.category-bed-and-bath .name-of-your-css-class {color: #369}

If it’s category name you want to have different colors, then this should work.

.category-bed-and-bath h2 {color: #369}

 
Magento Community Magento Community
Magento Community
Magento Community
 
l781
Sr. Member
 
Total Posts:  109
Joined:  2008-11-09
 

thanks, chinesedream, for your reply and explanation how to “work” with CSS… shame on me, but i know CSS very little… smile

thanks again - i will try.. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
l781
Sr. Member
 
Total Posts:  109
Joined:  2008-11-09
 

thanks, chinesedream, for your reply and explanation how to “work” with CSS… shame on me, but i know CSS very little… smile

maybe you know more links/posts about skining Magento theme?

thanks again - i will try.. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
shin_mangaman
Member
 
Total Posts:  55
Joined:  2008-09-17
 

Thanks chinesedream!!! but my problem is that i have to change the colour by using the BODY_BG.GIF ( the image of the background...) that i’ve edit in 3 different colours!! i’have to edit CSS also in this problem?!?! bye bye!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
szotyi
Sr. Member
 
Total Posts:  153
Joined:  2008-11-29
 

/skin/frontend/default/modern/css/reset.css
at the end of the file:

body.category-bed-and-bath {background:url(body_bg_red.gif);}
body
.category-your-second-category {background:url(body_bg_greed.gif);}

clear the cache of your browser!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top