Welcome friends, today I will show you how to change the number of shop columns/change number of products per row in Woocommerce. By default, WooCommerce show products in 3 columns and a sidebar. This is the basic style to display products in listing page. The columns are sized according to our theme’s design or the maximum width of the browser window. But if we want our custom columns number then we need to write code. WooCoomerce comes with huge hooks and those hooks are very useful to change WooCommerce default functionality. Using a WooCommerce hook(loop_shop_columns) we can do that.

Change number of products per row in Woocommerce for Custom Theme

To change the number of products per row, use this code in your theme’s functions.php file.



Change number of products per row in Woocommerce for WooTheme

To change the number of products per row, use this code in your WooTheme’s functions.php file.

I hope now you can Change the number of shop columns according to your theme requirements. Please comment for any help

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
How to Change the number of shop columns in Woocommerce
Tagged on: