3

I would like to display only title in product information tab on product page after page load. When I click on title name , need to show their particular content.

enter image description here

1 Answer 1

3

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"}}'>
4
  • 1
    Thank you. It's working
    – Priya
    Jul 18, 2019 at 7:13
  • Hi, if we click the title "active" class not added
    – Priya
    Jul 18, 2019 at 8:11
  • Yes active class already removed, If you want active class then now you have to add via jquery based on onclick while click tab. Jul 18, 2019 at 8:25
  • Yes i need to activate after click the title only, befor that only show title alone not a content
    – Priya
    Jul 18, 2019 at 8:45

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.