Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I am looking to hide a video section on a collection page in the Dawn theme that is driven by META data. How do I accomplish this?
maybe with a liquid bit like...
{%- if product.metafields.custom.fieldID == blank -%}
// add some javascript to hunt and hide the element
{%- endif -%}
or like this to output the vid in the first place only if it has one
{%- if product.metafields.custom.fieldID != blank -%}
// add the video element html + liquid url
{%- endif -%}