I am using Woocommerce 3.3.3 and trying to change the number of columns for a specific product category and not the other product categories. I have tried several code options, but they all apply the change in columns to all categories. Here is one of thing I've tried.
/* change columns to 1 for newsletter issues prod cat*/
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
if ( is_product_category('newsletter-issues')) {
return 1;
} else { // for other archive pages and shop page
return 4;
}
}
}
Using the bellow function you can set product list column and number of product per category page.