Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: meta field richtext frontent view

meta field richtext frontent view

kim91
Visitor
2 0 1
Hello ,
i very tired for metafield richtext showing in frontent i am getting only json formate .
plz help for showing proper content in frotentd.
 
product.metafields.custom.olfactory_notes
 
{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"hhhhhhhhhhhh"}]}]}
 
Replies 5 (5)

Nalinda
Shopify Partner
35 0 14

Hi @kim91 , Did you find a solution?

Nalinda
Shopify Partner
35 0 14

Hi @kim91 , 

 

Please use this, 

{%- if product.metafields.custom.olfactory_notes != blank -%}
{{ product.metafields.custom.olfactory_notes | metafield_tag }}
{%- endif -%}

Thanks!
patchkroll
Shopify Partner
2 0 1

You saved me so much headache. Thank you! Shopify needs better docs on this... 

macclinson
Shopify Partner
1 0 1

Life saver! Thank you

Pandaboom
Tourist
6 1 0

OMG Thank you! You SAVED ME!