Change from 3 to 4 columns products in Initial Page Featured Collection

Solved

Change from 3 to 4 columns products in Initial Page Featured Collection

neodstoreof
Excursionist
18 0 7

Hello all,

I was wondering if anyone could help me with this. I currently have a Brooklyn theme store and in the featured collections in the home page, I would like to change from 3 columns to 4 columns of products. I have already changed the amount of products displayed in these sections from 9 to 12 so that when I change for 4 columns, I have 3 complete rows. 

Also, I would like to make the images smaller a little bit in the featured collection windows in home page. I think the current size is 510x415px, but when I tried to modify, it just stayed the same, unless I used a different ratio. For example, when I wrote 200x200px, it just stayed as a retangular shape, window. I figured this section I was changing was the image, but not the window. So the height adjusted to 200, but the width stayed the same, turning the shape to a retangular shape with a image centered, but leftover window empty space. How can I change the window and image size of these sections?

My store is neodstore.com.br.

Accepted Solutions (2)

Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

Is it like this: 

BrianDev_0-1628880394407.png

If yes, you can add this code at the bottom of the theme.css file

@media(min-width: 1024px) {
  #CollectionSection .grid-uniform {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
  }
  #CollectionSection .grid-uniform .grid__item {
    width: 100% !important;
  }
  #CollectionSection .grid-uniform .grid-product__image-wrapper {
    height: auto !important;
  }
}

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

View solution in original post

Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

I think on mobile you should leave 2 columns like this.

BrianDev_0-1628924375309.png

You can replace the old code with this new one to apply to both desktop and mobile

#CollectionSection .grid-uniform {
  display: grid !important;
}
#CollectionSection .grid-uniform .grid__item {
  width: 100% !important;
}
#CollectionSection .grid-uniform .grid-product__image-wrapper {
  height: auto !important;
}
@media(min-width: 1024px) {
  #CollectionSection .grid-uniform {
    grid-template-columns: repeat(4,1fr) !important;
  }
}
@media screen and (max-width: 640px) {
  #CollectionSection .grid-uniform {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #CollectionSection .grid-uniform .product--wrapper {
    margin: 0;
  }
}

If you find this to be the correct solution, please like and accept the solution. Thank you.

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

View solution in original post

Replies 10 (10)

Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

Is it like this: 

BrianDev_0-1628880394407.png

If yes, you can add this code at the bottom of the theme.css file

@media(min-width: 1024px) {
  #CollectionSection .grid-uniform {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
  }
  #CollectionSection .grid-uniform .grid__item {
    width: 100% !important;
  }
  #CollectionSection .grid-uniform .grid-product__image-wrapper {
    height: auto !important;
  }
}

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

melfiorastreet
Visitor
1 0 0

having same problem on dawn theme do you have any particular css 

collinsmbaka
Shopify Partner
224 27 107

Hi @neodstoreof 

You don't need to edit the theme CSS, you can update the grid class. There is a solution for this on this thread

https://community.shopify.com/c/Shopify-Design/How-do-I-add-more-products-per-row-on-my-Brooklyn-the...

Cheers!

Collins Mbaka
Web Developer | Shopify Developer
neodstoreof
Excursionist
18 0 7

Hello! That worked for the collection page. However, I want that same thing to happen in the featured collection section in the initial page of my website.

When you enter https://www.neodstore.com.br/ and you scroll down, I want to see 4 columns of products in those sections. I know how to modify the amount of products in each, but not the amount of columns.

Henry_dev
Shopify Partner
118 22 36

Hello @neodstoreof 

This guide of mine is to apply apply to the first page.

BrianDev_0-1628908488315.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

neodstoreof
Excursionist
18 0 7

Thank you!! It worked!!

I was mistakenly applying it to the theme.liquid.

Henry_dev
Shopify Partner
118 22 36

Hello @neodstoreof You're welcome. 

If you find this to be the correct solution, please like and accept the solution. Thank you.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

neodstoreof
Excursionist
18 0 7

Since you're here.. do you know how to do something similar on mobile version? But like, with 3 rows? Because when I open on mobile, it displays one product at a time.

Henry_dev
Shopify Partner
118 22 36

This is an accepted solution.

I think on mobile you should leave 2 columns like this.

BrianDev_0-1628924375309.png

You can replace the old code with this new one to apply to both desktop and mobile

#CollectionSection .grid-uniform {
  display: grid !important;
}
#CollectionSection .grid-uniform .grid__item {
  width: 100% !important;
}
#CollectionSection .grid-uniform .grid-product__image-wrapper {
  height: auto !important;
}
@media(min-width: 1024px) {
  #CollectionSection .grid-uniform {
    grid-template-columns: repeat(4,1fr) !important;
  }
}
@media screen and (max-width: 640px) {
  #CollectionSection .grid-uniform {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #CollectionSection .grid-uniform .product--wrapper {
    margin: 0;
  }
}

If you find this to be the correct solution, please like and accept the solution. Thank you.

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Feel free to

Email Me

---

Buy Me A Coffee

neodstoreof
Excursionist
18 0 7

Damn.. you good!!