I want to display 4 columns in the category listing for Magento 2. Means Now products showing 3 columns, Need to change 3 to 4 so Product will show like below


Product-1 | Product-2 | Product-3
Product-4 | Product-5 | Product-6

Need After

Product-1 | Product-2 | Product-3 |Product-4
Product-5 | Product-6 | Product-7 | Product-8

You need to modify yourcss.less file. By change &:nth-of-type(3n+1) value as per your requirement . enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.