Hot answers tagged

1

It is unclear from your question where the html element is on the product page that you wish to show/hide. If it is in the details.phtml template you can extend this in your module or theme at Magento_Catalog\templates\product\view\details.phtml Check for your custom attribute and apply the css class name to the html element you want to hide/show: <?php ...


Only top voted, non community-wiki answers of a minimum length are eligible