Last active
March 10, 2020 15:36
-
-
Save woogists/11472c1f1b4982a83a4f7987d73575ed to your computer and use it in GitHub Desktop.
[Theming Snippets][Change number of products per row for non Woo-developed themes]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for snippet, under which license is it under - GPLv3 like WooCommerce?