adjusted post thumbnail dimensions
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Dec 2015 16:39:10 +0000 (11:39 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Dec 2015 16:39:10 +0000 (11:39 -0500)
index.php
views/list_products.php

index 5fc27d9..55bbc1a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -175,7 +175,7 @@ function michsci_shortcode($atts)
     echo michsci_get_terms_dropdown();
     echo '</div><div class="small-12 medium-3 columns"><input type="submit" value="search" class="button"></div></div>';
     echo '</form>';
-
+    
     if ( $product_id = filter_var( $_REQUEST['product'], FILTER_VALIDATE_INT ) ) {
         michsci_show_product($product_id);
     } else if ( $cat_id = filter_var( $_REQUEST['category'], FILTER_VALIDATE_INT ) ) {
index 04118ab..4f6a3d9 100644 (file)
@@ -3,7 +3,7 @@
         <div class="product small-12 medium-3 columns<?php if ($product->end){ echo ' end';}?>">
             <div class="row">
                 <div class="prodImg small-12 columns"><a href="<?php echo $product->href; ?>">
-            <?php echo get_the_post_thumbnail( $product->ID, 'post-thumbnail' ); ?></a>
+            <?php echo get_the_post_thumbnail( $product->ID, array(320, 286 )); ?></a>
                 </div>
                 <div class="subCat small-12 columns">
                     <a href="<?php echo $product->href; ?>"><?php echo $product->term; ?></a>