Re: Increase number of columns in mobile collection/product list

Solved

Increase number of columns in mobile collection/product list

WVU
Tourist
16 0 3

Hi there,

I'd like to display 3 products next to each other on the mobile version of my webshop.
Right now, only 1 is displayed. I'm not too sure which code to add/change in order for me to fix this.

Link to store: https://utrecht-winkel.nl/

Example pic:

WVU_0-1726734381047.png


Thanks a lot! 🙂

Kind regards,

Teun

Accepted Solutions (2)

Moeed
Shopify Partner
6292 1711 2055

This is an accepted solution.

Hey @WVU 

 

Displaying 3 products in one row on mobile wasn't looking good so if you wanna display 2 then,

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.collection-listing .product-list .product-block {
    width: 50% !important;
}
}
</style>

RESULT:

Moeed_0-1726734881202.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


View solution in original post

Moeed
Shopify Partner
6292 1711 2055

This is an accepted solution.

Hey @WVU 

 

Remove the previous code and try this updated code.

<style>
@media screen and (max-width: 767px) {
.collection-listing .product-list .product-block {
    width: 50% !important;
}
.product-block__title.t-left {
    font-size: 1rem !important;
}
.vendor.t-left {
    font-size: 13px !important;
}
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
6292 1711 2055

This is an accepted solution.

Hey @WVU 

 

Displaying 3 products in one row on mobile wasn't looking good so if you wanna display 2 then,

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.collection-listing .product-list .product-block {
    width: 50% !important;
}
}
</style>

RESULT:

Moeed_0-1726734881202.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


WVU
Tourist
16 0 3

Thanks a lot Moeed, this is awesome!

One more question; which code should I adjust to smaller the font size of product title and product vendor a bit? 

Moeed
Shopify Partner
6292 1711 2055

This is an accepted solution.

Hey @WVU 

 

Remove the previous code and try this updated code.

<style>
@media screen and (max-width: 767px) {
.collection-listing .product-list .product-block {
    width: 50% !important;
}
.product-block__title.t-left {
    font-size: 1rem !important;
}
.vendor.t-left {
    font-size: 13px !important;
}
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


Rahul_dhiman
Shopify Partner
656 127 132

Hello @WVU 

Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> styles.css --->line number 6390
search this code.

@media (max-width: 767px) {
.collection-listing .product-list .product-block {
width: 100% !important;
}
}

and replace with this code.

@media (max-width: 767px) {
.collection-listing .product-list .product-block {
width: 50% !important;
}
}

 result
7.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167