Mastering Product Image Order: Keep Your Cover Image First in Shopify's Horizon Theme
Hey fellow store owners! Let's talk about something that might seem small but can really trip up your customer's shopping journey: product image order. I recently saw a fantastic discussion in the Shopify community that really highlighted a common pain point, especially for those of you rocking the Horizon theme. Hervé, a store owner, brought up an issue that many of us can relate to: their product gallery was showing a variant color image first, even before the main cover image, once a customer clicked into the full gallery view. This isn't ideal when you want to tell a consistent product story from the get-go!
Hervé's goal was clear: they wanted the cover image to always appear first, followed by the other main product photos, and only have the variant-specific image switch into view *after* a customer had made both a size and color selection. This makes total sense for a smooth user experience, right?
Understanding Why Your Variant Image Jumps Ahead
So, why does this happen? As one expert in the thread, ai-theme-code-editor, pointed out, in themes like Horizon, the gallery order and how variant media behaves are often controlled separately. What you're likely seeing is the variant image being included in your product's main media list. When the gallery initializes or opens, if that variant image is associated with the default or first selected variant, it can become the active media, overriding your intended cover image.
Here's a visual of what Hervé was seeing:

And here's another example of the issue:

First Steps: Getting Your Shopify Admin in Order
Before diving into any code, let's make sure your basic setup is correct in the Shopify Admin. This is foundational, and sometimes, it's all you need to fix simpler cases.
- Set Your Cover Image as the First Product Media: In your Shopify Admin, go to Products > All products, select the product, and make sure your primary, general product image (your "cover image") is dragged to the very first position in the media section.
- Order Your Normal Product Photos: Place any other general product photos immediately after your cover image.
- Assign Variant-Specific Images: Crucially, ensure that your color/variant images are assigned to their *appropriate variants* in the Variants section. This tells Shopify, "Hey, this image belongs to the 'Red' variant."
The idea here is that you want the theme's variant-media behavior to kick in only *after* the relevant variant is chosen, not before. As ai-theme-code-editor put it, the desired logic is initially "Cover → photo 2 → photo 3 → photo 4" and then, "After Size + Colour selected: Cover → Photo 2 → Photo 3 → Colour-specific image."
A "Simpler" Fix: Reordering Default Variants (and a UX Debate!)
Now, here's an interesting point raised by DanielAnderson in the discussion. While Hervé's goal is valid, sometimes the default behavior of showing a variant image first isn't entirely "wrong." If a customer clicks a link specifically for a "Red Shirt," they might expect to land on a page showing the red shirt right away. If it opens on a generic cover image, they might have to scroll to find the red one they just asked for.
DanielAnderson suggested a simpler fix if your main annoyance is that the gallery opens on a color *nobody picked*: "Reorder your variants in the admin so the one you want leads, and assign your cover image to that variant. First thing anyone sees is the shot you wanted, and it still switches properly when they choose something else." This means you can manipulate which variant (and its associated image) shows by default on page load. If your 'default' variant is 'Black', and you want your 'White' cover image to show, you'd need to associate that white cover image with the 'Black' variant, or make 'White' your default variant.
It's a good reminder to always think about the user experience: what's the most intuitive thing for your customer to see when they land on that page?
When Custom Code is Your Next Step
If you've tried the admin tweaks and your Horizon theme is *still* stubbornly moving that variant image to the first position, then you're likely looking at a theme customization. As Steve_TopNewYork and ai-theme-code-editor both noted, there's no native setting in Horizon for this exact behavior. This means digging into the theme's code.
You'd need to adjust the Horizon theme's product-gallery Liquid/JavaScript. The goal is to ensure that the initial gallery state *always* selects the product's first media (your cover image), rather than defaulting to the first variant's media. This is a job for a developer, or if you're comfortable with code, you can tackle it yourself. Just remember, don't simply hide the variant image with CSS, because you still want it to appear once the customer actually selects that color!
Don't Forget About Bulk Uploads and CSVs!
For those of you managing large catalogs, the Shopify_CSV_Helper chimed in with some crucial advice about CSV imports. If you're using CSVs to manage your products and images, pay close attention to these rules:
- Master Gallery Position Array: The
Image SrcandImage Positioncolumns in your CSV control the main product media gallery order. The first variant row you define often sets the main display image. - Explicit Variant Image Row Duplicate: To assign a specific image (like your "Navy Blue" variant image), the
Variant Imagecolumn on that variant row *must* explicitly carry the Navy image URL. If you have multiple sizes for that Navy color, you need to duplicate that Navy image URL across all those size rows. - WebP Image Ingestion Order Failure: Beware of supplier feeds with raw
.webpimage links or expiring CDN parameters. Shopify's background CSV worker can sometimes drop these asynchronously, causing your image order to get messed up without any error logs. If this is a concern, consider tools (like EasyCatch, mentioned in the thread) that can convert WebP to JPGs locally before import.
The CRO Perspective: Always Test!
Icey.Lane brought up an excellent point about Conversion Rate Optimization (CRO). It's not just about getting the cover image to stay first; it's about making the shopping experience clear and intuitive. They suggested that while the cover image should lead initially, switching to the correct variant media as soon as a customer selects a *color* (not necessarily waiting for both size and color) might be cleaner, as size usually doesn't change the visual evidence.
When you're testing any customization, always verify three states on both mobile and desktop:
- Initial landing
- Color selected
- Returning to a previously selected variant
The goal is to reduce wrong-color selections or backtracking without hurting your add-to-cart rate. After all, a seamless visual experience can make a huge difference to your customers, and a great online store starts with a solid foundation. If you're looking to start your own online store or migrate to a platform that gives you this kind of control and community support, I highly recommend checking out Shopify. It really empowers merchants to fine-tune their stores for success.