How can I hide blank metafields on my product page?

Hi @OH2 ,

Please find ‘richtext’ and change ‘liquid’. Refer:

Then you can add conditions to show Metafields. Example for Binding:

{%- if product.metafields.my_fields.binding != blank -%}
Binding: {{ product.metafields.my_fields.binding }}
{%- endif -%}

Hope it helps!

1 Like