Dawn Theme: My product page displays the wrong amount of images for each variation

Topic summary

A merchant using the Dawn theme reports incorrect image counts displayed on product pages across their store. The main issues include:

Primary Problems:

  • Landing page shows 3 images when 4 are uploaded
  • Mobile displays incorrect image counts (shows “4 of 4” but only scrolls to image 3)
  • When selecting color variations, the counter shows wrong numbers (e.g., “5 of 6” when only 5 images exist)
  • The merchant followed a tutorial to link specific images to color variations, which may be related to the issue

Attempted Solutions:

  • One user provided JavaScript code to fix the image counter by subtracting 1 from the total count, to be added before the </body> tag in theme.liquid
  • Another user noted this solution won’t work on Dawn 9.0+ as the Layouts-theme.liquid file structure has changed
  • A fourth participant suggested unchecking a specific box (image unclear due to encoding issues)

Status: The discussion remains open with no confirmed resolution for newer Dawn theme versions.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

I uploaded 4 images for my product, but landing on the page it only shows 3 images. However, when I select the color variations that’s when they show the right images. The part that really bothers me is that on mobile, it says I have 4 images but I can only scroll to the third image. And then when I click on a variation, it says I have 3 images for that variation when I actually just have 2. I don’t want my customers struggling to scroll for the last image and getting frustrated when there’s nothing there.

This is an issue across all my products. For some products, the displayed amount of images fluctuates up and down. It’ll say there’s 4 images in the slide, but there’s actually 5 so the slider says 5/4. On the same product but different variation, it’ll say there’s 6 images but you can only slide to the 5th image. And so then the slider says 5/6

My shop url is yours2keep.store

I followed a tutorial to link color variations to specific images using this video.

Hello.

Quick solution:

  1. Go to the https://yours2keep.store/admin/themes

  2. Actions-Edit Code

  3. Select Layouts-theme.liquid

  4. Add this code to the bottom of page. Before tag.

<script>
  (() => {
    try {
      const total = document.querySelector(".slider-counter--total");
      total.innerText = parseInt(total.innerText) - 1;
    } catch (e) {}
  })()
</script> 

Result should be looks like:

1 Like

There’s no Layouts-theme.liquid on Dawn theme 9.0

uncheck this box