0

I want to add a body class "custom-options" to the product page, when the product got some custom options.

How can I achieve that?

1 Answer 1

0

Admin -> catalog -> Product -> Design -> Layout Update XML

Add following code :

<body>
    <attribute name="class" value="custom-options" />
</body>
1
  • Thanks! But I want this an all product pages with custom options, how can I achieve that?
    – JGeer
    Commented May 1, 2020 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.