Shopify themes, liquid, logos, and UX
hi i am using berlin theme and would like my website to show 2 products per row on mobile how do i do this?- pirmarymenswear.com
Solved! Go to the solution
This is an accepted solution.
Do you mean in your collection right?
Like this?
But youll have a problem in the smaller screen.
If you like all the way here is the code.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.collection-product-list {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
And save.
If you like with the limit:
@media screen and (min-width: 400px) and (max-width: 749px) {
.collection-product-list {
display: grid;
grid-template-columns: 1fr 1fr !important;
}
}
And save.
It will come back to 1 products in on smaller screen.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @primarymenswear
sorry, its primarymenswear.com
This is an accepted solution.
Do you mean in your collection right?
Like this?
But youll have a problem in the smaller screen.
If you like all the way here is the code.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.collection-product-list {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
And save.
If you like with the limit:
@media screen and (min-width: 400px) and (max-width: 749px) {
.collection-product-list {
display: grid;
grid-template-columns: 1fr 1fr !important;
}
}
And save.
It will come back to 1 products in on smaller screen.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi Mate, Thanks for helping. Unfortunately, it didn't work for.
What do you mean? it doesnt work after 6months?
Yeah I just tried the instructions yesterday, and it didn't work for me
Oh, sorry for the confusion. I assumed it was the same author. It’s possible that our solution might not work for your store due to different themes. Could you please share your store URL so I can take a look? Thanks!
Hi @primarymenswear ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
@media(max-width:767px){
#ProductGridContainer .collection-product-list {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024