Long Text Metafields won't render html in product page collapsible tabs

Shopify support says that with the | metafield_tag it renders as plain text (the current issue) and without it it shouldn’t .. problem being the way our theme is coded I can’t simply remove it.

Hi @ej2 ,

It’s a known issue of the multi-line text metafield definitions. The good news is that you can fix it easily with some proper Liquid code. You may want to refer to this thread for more details.

Hi @ej2 ,

You can change it by adding the code directly at the product page. Can you send me the code of main-product.liquid file. I will check it

As I’m reading your thread - It seems i have to hardcode the metafield in - no connecting dynamic sources - correct? If so that’s a bummer.

Technically, it’s still a dynamic data source. The difference between the Liquid version and the “native” Shopify metafield interface and is not that big:

  1. It’s displayed slightly different in the theme editor panel;

  2. It’s not affected by that annoying HTML bug. Which is good because you’ll be able to display the same content, but with properly rendered HTML.

If you’ll manage to find another way to fix this problem, please share the results in this thread. It might help other Shopify merchants facing a similar problem. It’s always nice to have multiple options to select from.

Hi @ej2 ,

Now you can edit it directly with code. You can change it by adding the code directly at the product page. Can you send me the code of main-product.liquid file. I will check it