1

Hi currently Magento 2 provide default tab in Product View Page. Now i want to add or change to custom product tab in view page.

Any one have idea how to change custom tab in magento 2.

2

You can modify product tabs from catalog_product_view.xml in your theme or module.

If you want to remove a tab : (description here)

<referenceBlock name="product.info.description" remove="true" />

If you want to add a new one :

<referenceBlock name="product.info.details">
            <block class="Magento\Catalog\Block\Product\View" name="example.tab" as="example"
                   template="Example_Module::example.phtml" group="detailed_info" >
                <arguments>
                    <argument translate="true" name="title" xsi:type="string">Example</argument>
                </arguments>
            </block>
        </referenceBlock>

The same way you can modify existing one.

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.