What's your biggest current challenge? Have your say in Community Polls along the right column.

Image Changing in Dawn disable

Image Changing in Dawn disable

Ferismateam
Shopify Partner
24 0 1

Hey,
The Standard settings in Dawn in the Product Page if you chose a variant the images go to the first postion but i dont want it could anyone help?

regards
your lovely ferisma

Replies 6 (6)

ReturnPrime
Shopify Partner
486 67 111

Hi @Ferismateam ,

 

 

    • To adjust the variant images in Shopify's Dawn theme so they don’t move to the first position when selected, follow these steps:

      1. Access Your Shopify Admin:

        • Go to Online Store > Themes.
      2. Edit Your Dawn Theme:

        • Find your Dawn theme and click on Actions > Edit code.
      3. Locate the Main Product File:

        • In the Templates section, look for main-product.liquid (or product.liquid depending on your version) and click on it. It may also be located in the Sections folder.
      4. Identify the JavaScript Code:

        • Look for the JavaScript code that handles image sorting when a variant is selected. This code typically triggers the reordering of images.
      5. Modify the Code:

        • Find the line responsible for moving the selected variant image to the first position. You can comment it out or adjust it.
      6. Save and Test:

        • Save your changes and refresh your product page to see if the issue is resolved.

Always back up your theme code before making any changes, and test the functionality on various devices to ensure it works as intended.

namphan
Shopify Partner
2067 273 306

Hi @Ferismateam,

Please send the website link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Ferismateam
Shopify Partner
24 0 1
Hey there is no website because its offline, like i said its the dawn theme
namphan
Shopify Partner
2067 273 306

Hi @Ferismateam,

Which version of Dawn are you using, because versions will have different JS code for media

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Ferismateam
Shopify Partner
24 0 1

hey the newest 15.20

namphan
Shopify Partner
2067 273 306

Hi @Ferismateam,

Please go to product-info.js file, line 302 and remove code here:

Screenshot.png

I hope it helps!

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com