Horizon theme — Remove default variant selection on product page

Hello,

I’m using the Horizon theme. On my product pages, the first variant is automatically pre-selected when a customer arrives on the page. This causes the variant image (a color swatch) to appear first in the gallery.

What I want :

  • Customer arrives → sees the main cover photo first, then the other product photos in order (no variant pre-selected)
  • Customer selects size AND color → then the variant image appears in the gallery

Is there a way to disable the default variant pre-selection in Horizon so the gallery shows only the main photos on arrival ?

Thank you,
Hervé

Hey @lelongdelajambe ,

By default, Horizon selects the first available variant on page load, so there isn’t a built in setting to disable that behavior.

To confirm whether this can be adjusted with a small theme customization, could you please share your store URL? If your store is password protected, please include the storefront password as well.

That will allow us to inspect how your product gallery and variant picker are configured and suggest the best approach.

Thank You !

Hi @lelongdelajambe

This is possible, but it requires customizing the theme because Shopify doesn’t have a setting to disable the initial variant selection.

I am new here, the forum rules don’t allow me to send link to you.

Hey
This is a really common one with Horizon since it auto-selects the first variant (and shows its image) on load.

There’s no toggle for it, so it takes a small code tweak. Two parts to it:

1. Stop the variant from being pre-checked — Horizon’s variant picker lives in the block files (look for something like product-variant-picker / variant-option). You’ll want to remove the default checked/selected state so no variant starts active, and make sure the JS doesn’t silently fall back to the first variant in the background (this catches a lot of people — the button looks unselected but the first variant is still active under the hood).

2. Show the main product image until a click — since no variant is selected, set the gallery to display the product’s featured image first, then let the variant image swap in on selection.

A couple of things worth doing:

  • Always duplicate your theme before touching variant logic — the picker is wired into price, image, stock, and add-to-cart, so it’s easy to break something on a live store.
  • Block “Add to Cart” until a variant is actually chosen, otherwise people can add the “nothing selected” state. A simple “Please select an option” message covers it.
  • If you’d rather skip code, some option apps (like Easify Product Options) let you leave an option unselected by default without editing the theme.

If you paste your product-variant-picker code here, I (or someone) can point at the exact line to change.
thanks,

In Horizon, on load it moves the first variant’s photo to the front of the gallery, so shoppers land on the colour swatch instead of your cover shot.

Fix:

Back up first, then edit one file

  • Online Store, Themes.
  • On your live theme open the “…” menu, choose Duplicate (a safety copy you can restore from), then open “…” again and choose Edit code.

  • In the file search box on the left, open snippets/product-media-gallery-content.liquid.
  • Find this line and change the one word, then Save:

find:     selected_or_first_available_variant
replace:  selected_variant

That is the only change. On arrival the gallery now leads with your main cover photo, in your normal photo order:

And when a shopper picks a colour, that colour’s photo jumps to the front, exactly as before:

Notes

  • It applies to every product on that theme
  • Price, stock and Add to cart are untouched, so nothing about buying changes.

Thanks again, all your solutions are working perfectly.