Please suggest how can we remove the "More Information" tabs from product details page
-
![enter image description here](i.sstatic.net/rN4YN.png) Hello, How we remove More Information name ??? and shift the content left side ???– user81225Commented Jun 25, 2019 at 7:51
-
Not understand can you please send scrn short– user81225Commented Jun 25, 2019 at 8:00
-
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review– HelgeBCommented Jun 25, 2019 at 8:13
-
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review– Chirag PatelCommented Jun 25, 2019 at 8:20
4 Answers
You can use the following in your layout file to remove the "More Information" tab:
<referenceBlock name="product.attributes" remove="true" />
If you need to remove the "Details" tab:
<referenceBlock name="product.info.details" remove="true" />
When looking in /slippers.nl/vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml you can see how it is added to the page.
<block class="Magento\Catalog\Block\Product\View\Description" name="product.info.details" template="product/view/details.phtml" after="product.info.media">
<block class="Magento\Catalog\Block\Product\View\Description" name="product.info.description" template="product/view/attribute.phtml" group="detailed_info">
...
</block>
<block class="Magento\Catalog\Block\Product\View\Attributes" name="product.attributes" as="additional" template="product/view/attributes.phtml" group="detailed_info">
...
</block>
</block>
You can see here the names of the elements you want to remove. Use the following to only remove the description/details tab:
<referenceBlock name="product.info.description" remove="true" />
Use the following to only remove the attribues/information tab:
<referenceBlock name="product.attributes" remove="true" />
Use the following to remove the entire section/all tabs:
<referenceBlock name="product.info.details" remove="true" />
Can try via Layout XML
like
<referenceBlock name="product.info.details" remove="true"></referenceBlock>
or some tabs - remove tab with reviews
<referenceBlock name="reviews.tab" remove="true"></referenceBlock>
You might want as well just to un-check the option "show on product detail page" for all attributes.
To do this for all attributes run a mysql query:
update catalog_eav_attribute set is_visible_on_front = 0
The advantage is, that you still can decide in the future to show single attributes and you do not need code modification.