Edit first item in list

msoder
Excursionist
29 0 9

I would like to make the first item in a collection twice as wide as the following items in the list. I have tried adding an if statement with product[0], and more at the start of the collection for loop but end up replicating the list instead. I'm assuming there is an easy way to do this with Liquid? This is regarding the 'bestsellers' section near the top if the site. Thanks!

site: https://mathias-dev-test.myshopify.com/

pass: saycew

0 Likes
msoder
Excursionist
29 0 9

To add, I just want to make the first item/product in the list twice as wide as the rest.

0 Likes
NgnLoop
Explorer
60 10 45

Lets say this is your loop, so you can grab first product like this

{% assign count = 0 %}

{% for product in c.products %}

{% if count == 0%}

{% endif %}

{% assign count = count | plus: 1 %}

{% endfor%}

0 Likes