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!
A user encountered limitations with Shopifyâs metaobject rich text field, which doesnât support HTML table insertion.
Solution provided:
{{ metaobject.ingredients_table_html | raw }}Key technical note:
| raw filter is essential to output actual HTML rather than escaped plain textThe workaround successfully enables HTML table support within metaobjects.
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!
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 ![]()