Jump to content

How to change the button color of only one category


Recommended Posts

Hi S-Hammani,

 

Thanks for your response. 
 
Sorry but I'm not informatic ... can you tell me more specific information? 
 
For example: my category's ID is # 3. 
It Would be... 
 
<tag class = "{if $ Category-> id == 3} new-class-name {/ if}"> 
 
But, where have I to put it?? 
 
The color is # F00: It would be? 
 
.new-class-name {
       background-color: # F00! important; 
 
But where in the global.css I have to put it ??
 
Thank you man!
Link to comment
Share on other sites

You should put it into your template: product.tpl or product-list.tpl in the text that defines the button.

 

For the functionality it doesn't matter where you put it in the global css file. You choose to put it near related lines - that is easy for debugging if there are problems - or you can choose to keep it near the top in order to have an overview of your modifications.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...