Skip to content

Instantly share code, notes, and snippets.

@deeman
Last active April 15, 2019 09:57
Show Gist options
  • Select an option

  • Save deeman/eaf5f62854cfbd05adbf55590e322d00 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/eaf5f62854cfbd05adbf55590e322d00 to your computer and use it in GitHub Desktop.
WooCommerce - Change number of Columns per row
/**
* Example: Change number or products per row to 4
*/
add_filter('loop_shop_columns', 'loop_columns', 999);
if (!function_exists('loop_columns')) {
function loop_columns() {
return 4; // 4 products per row
}
}
// Ref.
// https://docs.woocommerce.com/document/change-number-of-products-per-row/
Med vänlig hälsning
Daniel Andersson
TFN: +46 (0)73 919 56 51
@: da.jkpg@gmail.com, hej@daitcon.com
Facebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment