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?

0

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

Add following code :

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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