adding height for product_category and product_tag page in glm_header
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 20:48:40 +0000 (16:48 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 20:48:40 +0000 (16:48 -0400)
functions.php

index b2b5fe3..9ae743b 100644 (file)
@@ -217,10 +217,10 @@ function glm_get_header() {
     }
   
     echo '<div class="header-image-background"';
-    if(is_product() || is_page(101) ){
+    if(is_product() || is_page(101) || is_product_tag() ){
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(101), "full");
             echo ' style="background-image: url('.$image_data[0].');height: 370px;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat; "';
-    } else if ( is_category() ){
+    } else if ( is_product_category() ){
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(100), "full");
             echo ' style="background-image: url('.$image_data[0].');height: 370px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "';
     }