function wpse_setup_theme() {
add_image_size('glm-block-image', 290, 190,true);
+ add_image_size('nav-featured-product-thumb', 100, 120,true);
}
add_action( 'after_setup_theme', 'wpse_setup_theme' );
$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, array(100, 120))."'></div>\n";
+ $output .= "\n<div class='top-nav-featured-product'><img src='".get_the_post_thumbnail_url($featured_product->ID, 'nav-featured-product-thumb')."'></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";