Hi! I have scoured the internet for a solution for this, and have tried writing some liquid. (I used to be a Shopify Dev & second-tier support but It’s been several years)
Essentially I want to hide single option selectors on the product page :
No, I don’t want to hide that, I want to hide the option selector when there is only one option. In my screenshot you can see there is only ONE width and only one finish for that product. So the option selectors are redundant.
My understanding is you want to hide the option name and values if the option value is only one. So you can call the option value size instead. You can wrap the code of the option values with if statement.
{%- for option in product.options_with_values -%}
{% if option.values.size > 1 %}
{% render 'icon-caret' %}
{% endif %}
{%- endfor -%}