How to hide menu product page
-
15-04-2021 - |
Question
I need help to know How to edit, delete or hide menu (More Information and Reviews) on product page magento 2.
Solution
Go To this file and paste below two lines if not file available in your theme then you create it
app/design/frontend//Magento_Catalog/layout/catalog_product_view.xml
<?xml version="1.0"?>
<page 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" remove="true"></referenceBlock>
<referenceBlock name="reviews.tab" remove="true"></referenceBlock>
</body>
</page>
OTHER TIPS
Try this via Layout XML
like
<referenceBlock name="product.info.details" remove="true"></referenceBlock>
or remove tab with reviews
<referenceBlock name="reviews.tab" remove="true"></referenceBlock>
You can remove product tabs by removing it in catalog_product_view.xml file.
<referenceBlock name="product.info.details" remove="true"/>
<referenceBlock name="reviews.tab" remove="true"/>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange