TransWikia.com

remove slider and show gallary image as thumbnails in the detail page magento 2

Magento Asked by Magento Developer on December 17, 2021

Remove the slider and show gallery image as thumbnails on the detail page Magento 2.

please anyone can help me how can I solve this??

One Answer

You can set the template using layout XML, then make any customizations you want within that file:

In app/design/frontend/[Vendor]/[Module]/Magento_Catalog/layout/catalog_product_view.xml, add the following within the <body> tag:

    <referenceBlock name="product.info.media.image">
            <action method="setTemplate">
                    <argument name="template" xsi:type="string">path/to/your/template.phtml</argument>
            </action>
    </referenceBlock>

In this case, you will create a file in app/design/frontend/[Vendor]/[Module]/Magento_Catalog/templates/path/to/your/template.phtml. If you want to start with the native-magento template, you can copy the contents of vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml into your new template-file. This would give your a good starting point, but either way, you should be able create the desired output.

Answered by mtr.web on December 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP