This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Jack Richardson
Hi, I want to add the term-category class to the single products like are in the category page, where I can add this body class?
Thank you.
Hello,
Please clarify with more details what exactly you want to achieve and show a screenshot for better understanding.
Thank you.
Best regards,
Jack Richardson.
Hi, I send two screenshots:
In the next screenshot appear in the body classes “term-vasos-termos-mugs”, “vasos-termos-mugs” is the category of this products.
But in the “single product page”, this class don’t appear, I want that in the single product page, the body to have class “term-{category}”, for that each product have the category to which it belongs.
Thank you.
Hello,
It’s not required to have the category class in single product page. You have category name in the breadcrumbs http://storage8.static.itmages.com/i/16/0520/h_1463740378_9829370_347c105be2.jpeg .
Best regards,
Jack Richardson.
Hi, thanks, but I need add this class, because each product to have a different header according to the category that is part. For example, in this moment the header is “orange” but I want that this header to be “blue” for this product of this category, and the product of another category to be “Green”.
Hello,
Do you mean you want to have different breadcrumbs background color for different categories?
Unfortunately there is no such possibility in the theme. Sorry.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up