All things Shopify and commerce
Hey, maybe I am blind 😄 But is there a metaobject with html support? I choose a rich text, but I cant there insert a table like this:
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hello @PetrK
Solution: Use a multi_line_text_field (or custom field) to store HTML
1.Go to your metaobject definition.
2.Add a field:
. Type: Multi-line text (or Single-line if short HTML)
. Name: e.g., ingredients_table_html
3.Paste your full HTML table into that field:
<table>
<tr>
<th>Amount</th><th></th>
</tr>
<tr>
<td>MG</td><td>375 mg (100%*)</td>
</tr>
<tr>
<td>Vitamin D3</td><td>10 µg (200%)*</td>
</tr>
<tr>
<td colspan="2">*text</td>
</tr>
</table>
4.In your theme code, render it like this:
liquid
{{ metaobject.ingredients_table_html | raw }}
Important Notes:
. | raw is necessary to output HTML instead of plain text.
. Avoid using rich_text if you want control over HTML tables — it's more for styled content like bold/italic/lists.
Thank you 😊
This is an accepted solution.
Hello @PetrK
Solution: Use a multi_line_text_field (or custom field) to store HTML
1.Go to your metaobject definition.
2.Add a field:
. Type: Multi-line text (or Single-line if short HTML)
. Name: e.g., ingredients_table_html
3.Paste your full HTML table into that field:
<table>
<tr>
<th>Amount</th><th></th>
</tr>
<tr>
<td>MG</td><td>375 mg (100%*)</td>
</tr>
<tr>
<td>Vitamin D3</td><td>10 µg (200%)*</td>
</tr>
<tr>
<td colspan="2">*text</td>
</tr>
</table>
4.In your theme code, render it like this:
liquid
{{ metaobject.ingredients_table_html | raw }}
Important Notes:
. | raw is necessary to output HTML instead of plain text.
. Avoid using rich_text if you want control over HTML tables — it's more for styled content like bold/italic/lists.
Thank you 😊
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