Add term-category class to products - by alrodriguez

This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Jack Richardson

  • Avatar: alrodriguez
    alrodriguez
    Participant
    May 19, 2016 at 18:26

    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.

    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 19, 2016 at 19:01

    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.

    Avatar: alrodriguez
    alrodriguez
    Participant
    May 19, 2016 at 20:50

    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.

    Screenshot 1

    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.

    Screenshot 2

    Thank you.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 20, 2016 at 11:33

    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.

    Avatar: alrodriguez
    alrodriguez
    Participant
    May 20, 2016 at 13:05

    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”.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 20, 2016 at 13:10

    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.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.