0

i am using magento 2.3 version and i am using custom theme so i want to product page in main image showing first two images so when main image sliding and another coming it and rest first same like it

enter image description here

and i have this file try to modification but i can't achieve it

magento2/vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml

i know everything coming on this file but i can't set it

can you help me on this case?

Thanks!!

2
  • On that file you need to implement whole slider code, then and then it will fullfill your requirement. Aug 28, 2021 at 7:10
  • @DhirenVasoya yes right can you suggest me code for that thanks!! Aug 28, 2021 at 7:13

1 Answer 1

0

You need to make these changes in your theme directory. Create a directory Magento_Catalog inside your theme eq.

app/design/frontend/parenttheme/yourtheme/Magento_Catalog/templates/product/view create a file gallery.phtml

Inside the above path. Copy the content from

vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml

Make necessary changes.

run php bin/magento c:f

and check.

If the file already exists in the theme directory then make changes you need and clear the cache.

1
  • yes right can you suggest me code for that thanks!! Aug 28, 2021 at 7:13

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.