Hello,
How do I disable auto select variant in the Dawn theme?
Thank you!
Hello,
How do I disable auto select variant in the Dawn theme?
Thank you!
In the code editor, navigate to the sections/product-template.liquid file.
Look for the code block that handles the variant selection. It usually starts with something like {% if product.variants.size > 1 %}.
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 %}>.
Remove the selected attribute from that line.