How can I hide an empty custom liquid metafield in Sense 2.0?

Hi i’ve added a custom liquid section that i can fill with a img metafield


What should i add to this code if wanna hide it if blank?

sense 2.0

Haven’t tested it, but this should work @stefanensko

{% if product.metafields.custom.caffitaly_caff_ %}
    
{% endif %}
1 Like

Hi @stefanensko

You can try to use this code to check if it works

{% if product.metafields.custom.caffitaly_caff_ != blank %}
    
{% endif %}