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??
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??
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.
registration.php
and theme.xml
. Once you have a theme, you should be able to follow the instructions in my answer.
– mtr.web
May 3 '18 at 13:11