adjusting li product height to lower title tags
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 24 Nov 2015 18:26:50 +0000 (13:26 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 24 Nov 2015 18:26:50 +0000 (13:26 -0500)
functions.php
style.css

index d8bf15c..64cd1f7 100644 (file)
  */
 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.
index 2da624f..6a22d2f 100644 (file)
--- 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; }