Magento 2

How to add custom tabs in Product Page in Magento 2

Posted on

In your theme add “catalog_product_view.xml” file path would be app/design/frontend/{{vendor}}/{{theme}}/Magento_Catalog/layout <?xml version=”1.0″?> <!– /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ –> <page layout=”1column” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”product.info.details”> <block class=”Magento\Catalog\Block\Product\View\Description” name=”product.use” as=”use” template=”product/view/use.phtml” group=”detailed_info”> <arguments> <argument translate=”true” name=”title” xsi:type=”string”>How to use</argument> <argument name=”sort_order” xsi:type=”string”>15</argument> </arguments> </block> […]

 455 total views