Change thumbnail dimensions for the Books & Guides dropdown
authorLaury GvR <laury@gaslightmedia.com>
Fri, 26 May 2017 20:12:22 +0000 (16:12 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 26 May 2017 20:12:22 +0000 (16:12 -0400)
lib/menu-walker.php

index 01d5903..7715cb2 100644 (file)
@@ -74,7 +74,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
                 $output .= "\n<li>\n";
                 $output .= "\n<div class=\"shop-drop featured-drop\">\n";
                 $output .= "\n<h1>Featured Product</h1>\n";
-                $output .= "\n<div class='top-nav-featured-product'><img src='".get_the_post_thumbnail_url($featured_product->ID)."'></div>\n";
+                $output .= "\n<div class='top-nav-featured-product'><img src='".get_the_post_thumbnail_url($featured_product->ID, array(100, 120))."'></div>\n";
                 $output .= "\n<a class=\"button\" href=\"" . get_permalink( $featured_product->ID ) . "\">Buy Now</a>\n";
                 $output .="\n</div>\n";
                 $output .="\n</li>\n";