Posted on

Adjusting shop columns number in WooCommerce

WooCommerce displays products in four columns when you’ve just installed it. Depending on the theme you use you might not be able to adjust that value through options. Hopefully there’s a filter for that : loop_shop_columns.

So if you want only 3 columns all you have to do is add this little snippet in your theme’s functions.php file.

Well, truth is that won’t be enough because you will have to deal with CSS issue, especially with responsive themes. So in style.css you will have to add one line and adapt to number of columns you use.