How to remove “active” on product page tab after page load
-
07-03-2021 - |
Lösung
For the remove active
on product page tab after page load. You have to need update "openedState":"active"
to "openedState":"false"
in details.phtml
file.
File path: magento/vendor/magento/module-catalog/view/frontend/templates/product/view/details.phtml
Override the details.phtml
file to your theme and update code.
Find:
<div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>
Update to:
<div class="product data items" data-mage-init='{"tabs":{"openedState":"false"}}'>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange