Craft Theme Default Image Needs to Be an Image Other than a Variant Image

Hello, I’m trying to get a Media image on a product page to be the first image the customer sees when they enter that page. I do not want it to be the first variant’s picture. How do I get that to happen.

Also then I need to add arrows so that the customer can scroll thru all images attached on that product page.

Please help! Greatly appreciated!

Thank you,

Brenda

Journey Ahead Market

Hi @BDoro ,

Please go to main-product.liquid file, find ‘product-thumbnail’ and change code here:

Code:

{%- for media in product.media -%}
                - {%- assign media_position = media_position | default: 0 | plus: 1 -%}
                    {% render 'product-thumbnail', media: media, position: media_position, loop: section.settings.enable_video_looping, modal_id: section.id, xr_button: true, media_width: media_width, lazy_load: true %}
                

            {%- endfor -%}

Hope it helps!

That worked well, thank you.

Hi @BDoro ,

I saw you liked my answer. If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

I am having the same issue but cannot find the product-thumbnail location. I have looked through all of the code. Really need help with this