All things Shopify and commerce
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".
Solved! Go to the solution
This is an accepted solution.
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
This is an accepted solution.
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
RESOLVED.
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?
- Helpful? Like & Accept solution! - Support me: Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
RESOLVED.
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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025