How can I alter the featured product image on the Dawn theme?

How can I alter the featured product image on the Dawn theme?

shopitech
Visitor
2 0 0

How can I change my products featured image that shows on the collection page?

currently it is showing the image of the first variant but I want to show the first image that is loaded for that item on the product page. 
This is for Dawn theme. 

Replies 5 (5)

Imogen
Shopify Staff
2045 227 394

Hey there, @shopitech. Thanks for bringing your question here to the Shopify Community! It's awesome to meet you, and I hope you're having a good day so far!

 

To be clear, when on the collection page, the featured image for the product is meant to be showing. Once clicked, the image that will show on the product page will be the image for the first variant. I believe that you're saying that you're seeing the Variant Image on the collection page, is this correct?

 

I'm really interested in seeing what we can do for you here so please provide me with the following info at your earliest convenience:

 

  • Can you please provide us with a link to your shop? I'd like to be able to see this example in real time. 
  • If possible, screenshots would be helpful for us here, too!

 

Please, get back to me when you can with the request information! I'll keep my eyes peeled for your reply!

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

OheynaDesigns
Visitor
2 0 0

You have to make changes . Edit code of DAWN theme and make changes to /sections/main-product.liquid file Line# 59 and 66

 

line 59

{%- assign featured_media = product.selected_or_first_available_variant.featured_media -%}

To

{%- assign featured_media = product.featured_media -%}

line : 66

{%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}

To

 {%- unless media.id == product.featured_media.id -%}

 

Capture.JPG

 

 

 

jenok
Excursionist
22 1 3

Hi - Will this work on Dawn v11.0? I just switched from Shopify 1.0 theme to Dawn 2.0 in October. But now the version of Dawn that is showing on my dashboard is Dawn 11.0.

I would like to make the same changes.

jenok
Excursionist
22 1 3

Hi again - I have a follow up question to this. All of my products have 3-4 variants, and some have 30 variants. Now that I am on the Dawn theme, all of my variant images have disappeared on the product page and only appear if you select the variant from the variant picker. How can I get those variant images to appear again? I don't like that they're hidden unless selected from the picker.

gr_trading
Shopify Partner
1919 145 199

Please refer to the below video to achieve this.

 

For any custom development WhatsApp or connect at Email ID: [email protected] for quick consultation. | Shopify Free codes
To support Buy Me a Coffee