Jump to content

Display a custom background depending on the category


Recommended Posts

Hello everyone,

 

I would need your opinion  :rolleyes: .

Do you think that it would be technically possible to have a background on the sides of my content that is different depending on the product category I am in?

 

Knowing that the template have only 1 file category.tpl I do not see how to tell prestashop that such category will call such background ...

 

Any ideas ??

 

example :

In "Oiseaux", category + sub category + product, would display feathers

exemple1.jpg

 

And in my category Bats + Product (no sub-categories) another background

exemple2.jpg

 

Thanks a lot !!

Edited by ARNAUD DE SAINT JEAN (see edit history)
Link to comment
Share on other sites

Hello everyone,

 
I would need your opinion  :rolleyes: .
Do you think that it would be technically possible to have a background on the sides of my content that is different depending on the product category I am in?
 
Knowing that the template have only 1 file category.tpl I do not see how to tell prestashop that such category will call such background ...
 
Any ideas ??
 
example :

In "Oiseaux", category + sub category + product, would display feathers

exemple1.jpg

 

And in my category Bats + Product (no sub-categories) another background

exemple2.jpg

 

Thanks a lot !!

 

 

 

Hello,

 

Tag body has class with id and name category.

Through them you can assign background for category pages.

 

scr-7.jpg

  • Like 1
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...