Skip to content
Advertisement

WooCommerce Related Products: Rows

How can I display the Related Products output as 4 rows?

JavaScript

Advertisement

Answer

try this one

JavaScript

If you want to divide into 4 rows you have to do few CSS. Basically it all depends on how much number of products you want to display, its no relation of number of rows and columns. Like I have added the 12 products in code and it will be display 3 columns by default. So all depends on number of products and few CSS. I have added the 3 or 4 columns CSS code below. If you pass the number of columns as display above it just adding the class in code, you can also check the output code and I have attached screenshot as well. enter image description here Your CSS code will be like:

JavaScript

Apply this code according to your requirements. Let me know its work. Thanks.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement