From: Anthony Talarico Date: Tue, 24 Nov 2015 18:26:50 +0000 (-0500) Subject: adjusting li product height to lower title tags X-Git-Tag: v1.0.0^2~74 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cb6da1851c971f908d22fb34a1c67d1750ec4f15;p=WP-Themes%2Fthemoleholeonline.git adjusting li product height to lower title tags --- diff --git a/functions.php b/functions.php index d8bf15c..64cd1f7 100644 --- a/functions.php +++ b/functions.php @@ -10,12 +10,6 @@ */ 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. diff --git a/style.css b/style.css index 2da624f..6a22d2f 100644 --- a/style.css +++ b/style.css @@ -982,7 +982,16 @@ p.stars a { margin-bottom: 0; position: relative; overflow: hidden; + height:225px; padding: 1em; } + .site-main .storefront-recent-products ul.products li.product,.site-main .storefront-featured-products ul.products li.product, .site-main .storefront-popular-products ul.products li.product{ + height: 350px; + } + .site-main ul.products li.product:nth-child(n+5):nth-child(-n+9) { + position: absolute; + + } + .site-main ul.products li.product > a { display: block; overflow: hidden; }