How to have 2 columns for product list on mobile?

How to have 2 columns for product list on mobile?

ishak123
Visitor
3 0 0

Hello, I am hoping to have 2 columns for my product list page when viewed in mobile. What code should I be using? My website is:

 

www.tippytaste.com

 

thanks!!

Replies 4 (4)

BSS-Commerce
Shopify Partner
3477 464 554

Hi @ishak123

Maybe you want to the result like this, right?

BSSCommerce_2-1684210587999.png

To do this, the code that can do that is in the stylesheet.css file in the assets folder

BSSCommerce_4-1684210642363.png

 

To fix it, you can follow the instructions below

Step 1: Go to Themes -> Edit Code

BSSCommerce_5-1684210656673.png

Step 2: Find the file named stylesheet.css (Note the assets folder)

Step 3: In the stylesheet.css file, find the below css code

@media screen and (max-width: 739px)
.gridlock .row .mobile-3 {
    width: 97.91666667%;
}

Fix the value 97.91666667 to 47.91666667.

 

Hop this suggestion can help you.

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
ishak123
Visitor
3 0 0

Thank you for your response. It sort of works but now the page header is not aligned properly, and it also changed the grid on the homepage. Please advise. Thank you!

 

ishak123
Visitor
3 0 0

Basically it is making all the pages into 2 grids. I only want the products to be in 2 colomns.

BSS-Commerce
Shopify Partner
3477 464 554

It affected pages other than product pages, I'm sorry. Now let's keep the previous number 97.91666667, as if we haven't fixed anything. This helps to preserve the original grid structure of all pages.

The below css will only affect the product page

In the stylesheet.css file, find the below css:

@media screen and (max-width: 739px) {
    // css snippet to add
}

Add this css inside

.gridlock #product-loop .product-index {
     width: 47.91666667% !imporant;
}

Hope this helps you.

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency