Skip to content

tablerow

Generates table rows and cells for each item.

Outputs <tr> and <td> elements; cols sets the cells per row. Wrap it in a <table>.

{% tablerow item in array cols: 3 %}…{% endtablerow %}
Name Type Description
cols number Cells per row.
limit number Most items.
offset number Items to skip.
Liquid
<table>{% tablerow i in (1..4) cols: 2 %}{{ i }}{% endtablerow %}</table>
Output
<table><tr class="row1"><td class="col1">1</td><td class="col2">2</td></tr><tr class="row2"><td class="col1">3</td><td class="col2">4</td></tr></table>

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?