14

Please suggest how can we remove the "More Information" tabs from product details page

See : http://awesomescreenshot.com/0f765e4128

4

4 Answers 4

22

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" />
0
12

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" />
5

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>
1

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.

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.