FROM CACHE - en_header

HTML in metafields

giantsquid
Shopify Partner
2 0 0

Hi there,

I'm developing a private app to allow a shop owner to add a bit of simple custom html to a product page. Can metafields hold raw html?

Thanks,

Gabe

Replies 2 (2)
HunkyBill
Shopify Expert
4793 56 562

Metafield resources hold an integer or a string. HTML is nothing but a string, so yes, you can hold HTML in a metafield resource.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
giantsquid
Shopify Partner
2 0 0

Thanks HunkyBill!