adjusting header image height for product pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 14:13:17 +0000 (10:13 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 14:13:17 +0000 (10:13 -0400)
functions.php

index cea60b0..2007b3d 100644 (file)
@@ -200,8 +200,8 @@ function glm_get_header() {
   
     echo '<div';
     if(is_product()){
-            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(101), "full");
-            echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat; "';
+            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(100), "full");
+            echo ' style="background-image: url('.$image_data[0].');height: 670px;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat; "';
     }
     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");