Solved

products per row mobile

primarymenswear
Tourist
4 0 1

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
5085 1211 1481

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 4 (4)

techlyser_web
Shopify Partner
1004 188 189

Hello @primarymenswear 

techlyser_web_0-1705762876919.png

 

Techlyser || 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
4 0 1

sorry, its primarymenswear.com

Made4uo-Ribe
Shopify Partner
5085 1211 1481

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


PageFly-Oliver
Globetrotter
695 136 129

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.