...
WooCommerce, Wordpress

How to change number of products per row

21 February 2019

Here I’ will show you how to change number of products per row in woocommerce.

It is required when you build you own theme with lots of customization then, you have to change the layout of default woocommerce.

You can simply overwrite the default woocommerce code by writing your own custom code in “functions.php” file.

/**
 * Override theme default specification for product # per row
 */
function loop_columns() {
return 5; // 5 products per row
}
add_filter('loop_shop_columns', 'loop_columns', 999);

Leave a Comments