How To Change Number Of Columns In WooCommerce Shop Page

Published: 14 March 2019
on channel: Binary Carpenter
7,074
26

What is the best way to change the number of columns in your WooCommerce shop page?

There are themes that support setting number of columns for the shop page by default, however, there are theme that don't.

In such cases, you may want to add some additional code to your themes functions.php file. The good thing is it is easy to do and anyone can do that.

Here is the code you need to place in the theme's functions.php file:

add_filter('loop_shop_columns', 'woo_loop_columns', 999);
if (!function_exists('woo_loop_columns')) {
function woo_loop_columns() {
return 5; // 3 products per row
}
}


Watch video How To Change Number Of Columns In WooCommerce Shop Page online without registration, duration hours minute second in high quality. This video was added by user Binary Carpenter 14 March 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,074 once and liked it 26 people.