Skip to content

Instantly share code, notes, and snippets.

@joeyz
Created October 13, 2014 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeyz/68f50147eba7e72e477a to your computer and use it in GitHub Desktop.
Save joeyz/68f50147eba7e72e477a to your computer and use it in GitHub Desktop.
WooCommerce Override number of products per row
//Goes in functions.php
// Change number or products per row to 3
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3; // 3 products per row
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment