How to display similar items in a row of 4 product?

Hi all.

This problem.
Now the unit displays "You May also like..." in 2 rows.

You need to output the same 4 goods in a row? How to implement it?5afacedde256a021392180.png
June 5th 19 at 22:00
1 answer
June 5th 19 at 22:02
add to functions.php the following code:
add_filter( 'woocommerce_output_related_products_args', 'change_number_of_related_products' );

change_number_of_related_products function( $args ) {
 $args['posts_per_page'] = 3; // the number of output similar products
 $args['columns'] = 3; // number of columns
 return $args;

Find more questions by tags WooCommerceWordPress