Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Theming Snippets][Change number of products per row for non Woo-developed themes]
/**
* Change number or products per row to 3
*/
add_filter('loop_shop_columns', 'loop_columns', 999);
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3; // 3 products per row
}
}
@aniaq
Copy link

aniaq commented Mar 10, 2020

Thanks for snippet, under which license is it under - GPLv3 like WooCommerce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment