Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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!!
Hi @ishak123
Maybe you want to the result like this, right?
To do this, the code that can do that is in the stylesheet.css file in the assets folder
To fix it, you can follow the instructions below
Step 1: Go to Themes -> Edit Code
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
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!
Basically it is making all the pages into 2 grids. I only want the products to be in 2 colomns.
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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025