Hi! I’d like for my collections when viewed on mobile to have three/two and a half (would be perfect) products per row instead of just two. Is it possible to change that? Anyone’s help would be appreciated! It drives me crazy
https://www.techbros.ae/ - theme i’m using is charged
Moeed
July 3, 2024, 8:57am
2
Hey @alopat
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi! Thank you for replying! It change collections in general, but not the view on the first - main page. Would u be able to help with that?
Add this code in your otsb-style.css file:
@media (max-width: 639px) {
#products--template--22463764332860__featured_collection_dAHpcN.slider .grid-item {
width: calc(36% + 1rem) !important;
}
}
Result (two and a half):
Updated code for all sections of the home page:
@media (max-width: 639px) {
#products--template--22463764332860__featured_collection_dAHpcN.slider .grid-item,
#products--template--22463764332860__featured_collection_zf6QED.slider .grid-item,
#products--template--22463764332860__favourite_products.slider .grid-item {
width: calc(36% + 1rem) !important;
}
}
Result:
Thank You! So i should find right css. file to place it? Because i’m still trying but can’t get results