Here we will learch How to Change the Number of Shop Columns Woo Commerce with using function and with using WooCommerce short code.

1. Custom theme

Put the below code in function.php file

// Change number or products per row to 3
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
	function loop_columns() {
		return 3; // 3 products per row

2. Theme by Woo

If you have activated Woo themes than you can put below code in function.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);

3. Shortcode

Put the below short code in editor

[recent_products per_page="12" columns="5"]
There are currently no comments.