From: Anthony Talarico Date: Mon, 23 Nov 2015 17:32:02 +0000 (-0500) Subject: adding filter to change # of columns X-Git-Tag: v1.0.0^2~76 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a23e75ca1662572ff0cd38878be6d773a2086715;p=WP-Themes%2Fthemoleholeonline.git adding filter to change # of columns --- 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.