NuoNuo Posted January 10, 2017 Share Posted January 10, 2017 (edited) Hello everyone, I would need your opinion . 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 And in my category Bats + Product (no sub-categories) another background Thanks a lot !! Edited January 11, 2017 by ARNAUD DE SAINT JEAN (see edit history) Link to comment Share on other sites More sharing options...
BonPresta Posted January 10, 2017 Share Posted January 10, 2017 Hello everyone, I would need your opinion . 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 And in my category Bats + Product (no sub-categories) another background Thanks a lot !! Hello, Tag body has class with id and name category. Through them you can assign background for category pages. 1 Link to comment Share on other sites More sharing options...
NuoNuo Posted January 11, 2017 Author Share Posted January 11, 2017 Hello, Tag body has class with id and name category. Through them you can assign background for category pages. Awesome !!! thanks a lot for your answer ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now