The category page shows four products per row by default. This can be changed using the function below (for example, changing it to 2). Note: This snippet may no longer be necessary as this number can be now easily be set in the customizer.
/**
* Change number of products per row
*/
add_filter('loop_shop_columns', 'loop_columns', 999);
if (!function_exists('loop_columns')) {
function loop_columns() {
return 2; // set number of products per row here
}
}
View Raw
Code ID: 9955