Jump to content

Change background color of a category


Recommended Posts

Hey!

how to change the background color of a category page

e.g: cat-1 cat-2 cat-3

when we enter category-2 the color will be white

when in cat-3 the color is black

I tried a bit in css #category #wraper but it changes all of them, I do not know where to find the appropriate file for a given category

Link to comment
Share on other sites

PrestaShop does not have separate files for categories, all categories have exactly the same files.

 

Each category has its own ID number and in css you can refer to it:

.category-id-XX { /* Replace XX with the category ID */ 
  background-color: #ff0055 ; 
} 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...