How to show 2 products per row on mobile using the Berlin theme?

Solved

How to show 2 products per row on mobile using the Berlin theme?

primarymenswear
Tourist
9 0 2

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

 

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9566 2277 2824

This is an accepted solution.

Hi @primarymenswear 

Do you mean in your collection right? 

Like this?

Made4uoRibe_0-1705785127806.png

But youll have a problem in the smaller screen. 

Made4uoRibe_1-1705785166553.png

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 8 (8)

niraj_patel
Shopify Partner
2378 514 508

Hello @primarymenswear 

techlyser_web_0-1705762876919.png

 

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

primarymenswear
Tourist
9 0 2

sorry, its primarymenswear.com

Made4uo-Ribe
Shopify Partner
9566 2277 2824

This is an accepted solution.

Hi @primarymenswear 

Do you mean in your collection right? 

Like this?

Made4uoRibe_0-1705785127806.png

But youll have a problem in the smaller screen. 

Made4uoRibe_1-1705785166553.png

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Challenger
Visitor
3 0 0

Hi Mate, Thanks for helping. Unfortunately, it didn't work for.

Made4uo-Ribe
Shopify Partner
9566 2277 2824

What do you mean? it doesnt work after 6months? 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Challenger
Visitor
3 0 0

Yeah I just tried the instructions yesterday, and it didn't work for me

Made4uo-Ribe
Shopify Partner
9566 2277 2824

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

PageFly-Oliver
Shopify Partner
878 190 185

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.