soulfooddepot Posted April 17, 2023 Share Posted April 17, 2023 Hi, My website is version 7.0 and so I am having trouble with formatting my site to show multiple products per row for mobile view. I have tried using code below although it is specific to version 7.1 @media only screen and (max-width:767px) {.products .list-grid {display: flex; flex-wrap: wrap; justify-content: space-between; }.products .grid-item {width: 48%;}} Can someone please help me with solution to suit version 7.0? Link to comment
tuanphan Posted April 19, 2023 Share Posted April 19, 2023 Hi, Can you share link to product page? We can help easier Vicks 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
soulfooddepot Posted April 19, 2023 Author Share Posted April 19, 2023 I have multiple product pages, site is https://www.soulfooddepot.com.au/ Link to comment
Solution Vicks Posted April 20, 2023 Solution Share Posted April 20, 2023 (edited) Try this: @media only screen and (max-width: 700px){ #productList { display: grid; gap:10px; grid-template-columns: repeat(2, 1fr); } #productList .product { Float:none; width: auto; } #productList .product .product-image img{ left:0 !important; top:0 !important; width: 100% !important; height: 100% !important; object-fit: cover; } } This will update most of your products. However, I noticed when you select all, the products which are displayed are using different layout. Check if this script works.. and let me know for which page it doesnt work. Edited April 20, 2023 by Vicks sayreambrosio and tuanphan 2 Link to comment
soulfooddepot Posted April 20, 2023 Author Share Posted April 20, 2023 That worked perfectly across all product pages, thankyou so much Vicks!! Link to comment
Sinned98 Posted October 5, 2023 Share Posted October 5, 2023 On 4/20/2023 at 2:05 AM, Vicks said: Try this: @media only screen and (max-width: 700px){ #productList { display: grid; gap:10px; grid-template-columns: repeat(2, 1fr); } #productList .product { Float:none; width: auto; } #productList .product .product-image img{ left:0 !important; top:0 !important; width: 100% !important; height: 100% !important; object-fit: cover; } } This will update most of your products. However, I noticed when you select all, the products which are displayed are using different layout. Check if this script works.. and let me know for which page it doesnt work. Amazing, I was trying to figure this out for a while now. How can I adjust for 3 products in a row? Link to comment
tuanphan Posted October 7, 2023 Share Posted October 7, 2023 On 10/6/2023 at 2:25 AM, Sinned98 said: Amazing, I was trying to figure this out for a while now. How can I adjust for 3 products in a row? Change number 2 in Line 5 to number 3 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment