'Remove columns from table in liquid (Shopify Store)
I'm actually not sure what is the best way to achieve this. But I need to remove the column "GroupName" and everything under it from this table.
It is pulled from a Datafeed and how it is set up, there is no easy way to strip it using regex.
Is there a code snippet I can use to remove this?
Solution 1:[1]
Use this CSS code it will hide your first th and first td
<style>
table tr td:first-child {
display:none;
}
table tr th:first-child {
display:none;
}
</style>
<table>
<tr>
<th >Group Name</th>
<th>Name</th>
<th>Value</th>
</tr>
<tr>
<td >Specification</td>
<td>Cache</td>
<td>Total L2 cache 4MB; Total L3 Cache 32Mb </td>
</tr>
</table>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dotsquares |
