I’m trying to have the size variant placeholder to have text(“Select Size”) instead of first variant size. Must be a way to do so. Please help ![]()
Thanks
Goal: change the product size variant dropdown so it shows a placeholder (“Select Size”) instead of defaulting to the first variant.
Context: The user looked in variant.picker.liquid and only found the dropdown wrapper and an icon-caret include. They shared a minimal code snippet and asked exactly what to change.
Attempts/Issues:
What seems needed: Guidance on adding a non-selectable placeholder option to the select element and any required JavaScript to prevent auto-selecting the first variant and to enforce selection of a valid size.
Assets central to understanding: a small code snippet from variant.picker.liquid (dropdown markup and caret icon include).
Status: No resolution yet. The thread is awaiting specific code instructions and the missing script; key questions remain on where and how to implement the placeholder and JS behavior.
I’m trying to have the size variant placeholder to have text(“Select Size”) instead of first variant size. Must be a way to do so. Please help ![]()
Thanks
I wish is was that simple!
This? onyl thing as dropdown in variant.picker.liquid…
{% render 'icon-caret' %}
Just let me know what i need to do with this code, please.
Unfortunately, it did not work.
Can explain better, please. Thanks ![]()
I didnt attach the script either