How can I disable pre-selected size variants on a product page? (impact theme)

Hello, when a customer lands on a product page, the first size variant is pre-selected. I do not want any sizes to be pre-selected. I just want the customer to land on the product page and choose their own size.

my URL - sugercandy.com

(

Hello,

To ensure that no size variant is pre-selected when a customer lands on a product page, you can adjust the settings through your theme’s product settings or use custom code. Here’s a step-by-step solution:

  1. Navigate to Online Store > Themes in your Shopify admin.

  2. Select the theme you’re using and click on Actions > Edit code.

  3. Look for the product-template.liquid file or a similar file that handles product details.

  4. Add the following code snippet at the relevant section to remove the pre-selected size variant:

{% assign variant = product.variants.first %}
{% if variant %}
{% for option in variant.options %}
{% assign option.name = option.name | downcase %}
{% if option.name == ‘size’ %}
{% assign option.values = ‘’ %}
{% endif %}
{% endfor %}
{% endif %}

Alternatively, you can leverage Elsner.com Shopify Development Services to handle more complex customizations. Our expert developers can tailor your store exactly to meet your needs and provide seamless solutions to improve user experience.

it didnt help me

Which theme you are using? so we can give the solution accordingly.

impact theme