adding conditional to check for tours page to set proper height in glm_header
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 20:46:23 +0000 (16:46 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 20:46:23 +0000 (16:46 -0400)
functions.php

index eb4235f..b2b5fe3 100644 (file)
@@ -217,12 +217,12 @@ function glm_get_header() {
     }
   
     echo '<div class="header-image-background"';
-    if(is_product() ){
+    if(is_product() || is_page(101) ){
             $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() ){
             $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; "';
+            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; "';
     }
     else if ( has_post_thumbnail($post_id) && is_post_type('page')) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");