- This topic has 6 replies, 2 voices, and was last updated 3 years, 8 months ago by Hash.
- AuthorPosts
- January 15, 2021 at 9:01 am #29146puroxialbertaParticipant
I’d like to have 2 products per row, or at least have the products take up the full width of the screen (all this is only for mobile of course – PCs are fine). I’ve tried messing with some widths in CSS to no avail.
January 15, 2021 at 11:27 am #29155HashKeymasterCan you please show us your website so that we can better understand what you are looking for?
January 17, 2021 at 12:58 am #29183puroxialbertaParticipantThis reply has been marked as private.January 18, 2021 at 1:39 pm #29225HashKeymasterHi,
Please check this tutorial https://docs.woocommerce.com/document/change-number-of-products-per-row/
Thanks
January 19, 2021 at 9:17 am #29243puroxialbertaParticipantThat didn’t work – I’m pretty sure there’s an option in the customize GUI to do that. However, I managed to figure it out. Adding the following to the additional CSS fixed it:
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .woocommerce-page[class*=columns-] ul.products li.product, .woocommerce[class*=columns-] ul.products li.product { padding: 2px; float: left !important; }
It’d be nice if padding was only applied in between the items, but this will do just fine.
Thanks!January 19, 2021 at 10:17 pm #29260puroxialbertaParticipantUpdate:
I changedpadding: 2px;
tomargin: 1.0014% !important;
instead so the spacing would work properly across screen sizes. 1.0014% is the highest I could go and still have it work properly across all screen sizes.January 21, 2021 at 12:54 pm #29306HashKeymasterHi,
The method I suggested was the default WooCommerce method and it should have worked.
But I am happy that you found another workaround.
Thanks
- AuthorPosts
- You must be logged in to reply to this topic.