How to change image from collection and product page

How to change image from collection and product page

NikosBat
Explorer
336 0 52

Hello  guys,  is there any option to not display the same image in the product page and collection page? I want to have an other image in my collection page and not the same as in the product page.

 

Bildschirmfoto 2025-01-28 um 09.10.27.png

Bildschirmfoto 2025-01-28 um 09.10.33.png

Replies 2 (2)

DaisyVo
Shopify Partner
3782 412 498

Hi @NikosBat ,

 

I see that you are using the Dawn theme.

Currently, in the file card-product.liquid, the product image links are set to display the first image by default.

If you'd like to show the last image instead, you can make the following adjustments:

Locate any instances of media[1] in the file and replace them with media.last.

For example:

 

card_product.media[1].width change into   card_product.media.last.width
 
Let me know if it helps!
Best,
Daisy
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
NikosBat
Explorer
336 0 52

Thanks for your reply DaisyVo, im going to try that