Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi All,
I need help with visibility of collections in the page.
My page is showing only 1 collection per row and I want it to be like a grid.
Screenshot
Solved! Go to the solution
This is an accepted solution.
Oh, I initially thought that you want to apply it only for mobile phones.
Applying the code as below, without the media query would achieve a 2 column layout for desktop too.
.grid__item.grid-item.product-grid-item.large--one-quarter {
max-width: 48%;
float: left;
margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
max-width: 100%;
}
The page seems to be a little buggy (for example, part of the first image is behind the navigation bar). You might consider hiring a developer to make further adjustments.
Regards,
Gabriel
Hello,
Can you share your website link? To further clarify, you want that on mobile phones to have a 2 column layout?
Hello,
The below CSS code would make your collection page grid to have 2 columns:
@media (max-width:768px) {
li.item.product {
width: 50% !important;
float: left;
}
}
Adding the above code at the end of your 'styles.scss.css' file should be working as expected.
Let me know if everything works as expected.
Cheers!
Gabriel
Hi Gabriel,
Sorry for missing the point. It is required at this page :
https://www.pepyr.com/pages/clothing
It is a custom page created using a code from youtube video.
Here you go:
@media (max-width:768px) {
.grid__item.grid-item.product-grid-item.large--one-quarter {
max-width: 48%;
float: left;
margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
max-width: 100%;
}
}
Regards,
Gabriel
Tired adding in
styles.scss.liquid
style.css
styles-home.scss,liquid
It doesn't make any changes. I don't see styles.scss.css in my theme code.
Adding the code in any of the below files should be working as expected:
styles.scss.liquid
style.css
styles.scss.css (make use of the search bar to find this page)
I had a quick look and the code doesn't seems to be added - have you saved the file?
Alternatively, can you provide admin access? If yes, you can DM me and I'd be able to log in and apply the code.
Hi Gabriel,
Its working on mobile and I can see 2 products/collection in 1 row but on web it still shows 1 collection per row.
This is an accepted solution.
Oh, I initially thought that you want to apply it only for mobile phones.
Applying the code as below, without the media query would achieve a 2 column layout for desktop too.
.grid__item.grid-item.product-grid-item.large--one-quarter {
max-width: 48%;
float: left;
margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
max-width: 100%;
}
The page seems to be a little buggy (for example, part of the first image is behind the navigation bar). You might consider hiring a developer to make further adjustments.
Regards,
Gabriel
HI Gabriel,
Thanks for your help. It worked perfectly.
Can you share a screenshot of the bug you mentioned. The Theme looks same to me as it was in live preview.
If there are bugs, then would definitely love to get them removed by professionals.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025