From a23e75ca1662572ff0cd38878be6d773a2086715 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 23 Nov 2015 12:32:02 -0500 Subject: [PATCH] adding filter to change # of columns --- functions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 215b9c0..d8bf15c 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,13 @@ * Initialize all the things. */ require get_stylesheet_directory() . '/inc/init.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 + } +} /** * Do not add custom code / snippets here. -- 2.17.1