How do I disable Auto Select Variant - Dawn theme

Hello,

How do I disable auto select variant in the Dawn theme?

Thank you!

  1. In the code editor, navigate to the sections/product-template.liquid file.

  2. Look for the code block that handles the variant selection. It usually starts with something like {% if product.variants.size > 1 %}.

  3. Inside that code block, locate the line that includes the selected attribute. It might look like <option value=“{{ variant.id }}” {% if variant == selected_variant %}selected{% endif %}>.

  4. Remove the selected attribute from that line.