Change number of products in shown on home page in featured collection - Brooklyn Theme

New Member
1 0 0

Hello,

I was wondering if anyone could point me in the right direction to changing the number of products displayed in the featured collection packaged with the Brooklyn playful theme? The demo only shows 6 products but standard I guess is 9 which seems to make the page way too long for my liking.

Thank you,

Chris

0 Likes
Tourist
4 0 2

 

 

Hi, I had the same need and just solved this problem on my site.

 

1. Go to featured-products.liquid

if you are using collage format, then find this code:

 {% for product in collections[section.settings.home_featured_products].products %}
            {% include 'product-grid-collage'  %}

add limit:9 before %} on the first line

 

 

 {% for product in collections[section.settings.home_featured_products].products limit:9 %}
            {% include 'product-grid-collage'  %}

 

if you are using grid format, then add limits:9 on the code about grid below:

  {% for product in collections[section.settings.home_featured_products].products limits:9 %}
            {% include 'product-grid-item' %}
          {% endfor %}

hope it works

 

1 Like
New Member
2 0 0

Hi Sir. thanks for the script, it works like a charm. I have a small request about this, if I would like show a VIEW MORE button at the bottom of the feature collection panel when the items exceed 9, how to achieve that? Please help, thanks.

0 Likes
New Member
1 0 0

Major thanks yo!

0 Likes