Skip to content

Instantly share code, notes, and snippets.

@marcosnakamine
Forked from jameskoster/functions.php
Last active March 6, 2017 18:44
Show Gist options
  • Save marcosnakamine/ce008e2adf772b1f39a25a0b88318a4d to your computer and use it in GitHub Desktop.
Save marcosnakamine/ce008e2adf772b1f39a25a0b88318a4d to your computer and use it in GitHub Desktop.
WooCommerce - Change number of products per row
<?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