Goal: Hide empty Shopify product metafields in the Refresh theme so they don’t display on the product page.
Context: The requester shared their site and a product example, noting multiple failed attempts and attaching screenshots of the metafield setup.
Proposed approach: Use a Shopify Liquid conditional to render a metafield only when it’s not empty (e.g., check product.metafields.custom.size_chart and output it only if not blank). Liquid is Shopify’s templating language; metafields are custom data fields attached to products.
Follow-up: The requester asked where to place the code and said they couldn’t implement it. The helper offered to do the implementation and suggested continuing via email.
Outcome/Status: No in-thread placement instructions or confirmed fix. Resolution pending; assistance moving offline via direct contact.
Notes: Screenshots illustrate the metafield key used but are not essential to the solution. Key open item is where exactly to insert the conditional in the theme (e.g., relevant product template/section).
If you are unable to implement the same then I’m happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully, it will help you. If yes then Please don’t forget to hit Like and Mark it as the solution!