How do I hide a collapsible row block on the condition that the metafield that it is attached to has no text? It is part of my product template and the metafield is named “custom.product_summary”.
Hello @dosto ,
If it’s through code then you need to wrap it with a condition like this.
{% if product.metafields.custom.product_summary != blank %}
Your existing code here
{% endif %}
If its trough dynamic content then you can try css empty div logic.
If problem solved don’t forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services
You can find the email in the signature below.
Thanks
Hi @dosto
Could you share your product page URL containing an empty meta field collapsible row so I can give you the code to hide it?
Hi @dosto ,
Can you share the link of the product with empty metafield?
Also, can you share with me the a screenshot on Theme customize, where the product page you add the collapsible?
These information will help us better check for you.
Look forward to your response!
Best,
Daisy
RESOLVED.
RESOLVED.
RESOLVED.
What liquid file does this go in? I made this change before, but I need to add it to the updated theme files since there’s been an update to the theme.