Hi there,
I’m using the Grid theme and would like my products to appear in two columns on mobile view. Currently it’s a long list of a single column which isn’t very user-friendly. Please help, thank you so much.
Hi there,
I’m using the Grid theme and would like my products to appear in two columns on mobile view. Currently it’s a long list of a single column which isn’t very user-friendly. Please help, thank you so much.
@media (max-width: 769px) {
.rows-of-4 .product-list-item{
width: 50% !important;
}
.collection-products.rows-of-4 {
display: grid !important;
grid-template-columns: auto auto !important;
}
}
Hi @cindysmk ,
Here are the steps you can follow:
1, Navigate to Online Store > Themes > Edit Code.
2, Locate and open the theme.css (or base.css, custom.css) file.
3, Paste the code snippet provided below at the bottom of the file, then save your changes.
@media screen and (max-width: 539px) {
.collection-products {
/* background: yellow; */
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
height: 100% !important;
}
.collection-products .product-list-item {
position: static !important;
}
}
Here is the result
We hope this assists in resolving the issue.
If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!
Amazing, this worked. Thank you so much!