I changed the feature image back to what it was origininally
authorIan Weller <ian@gaslightmedia.com>
Tue, 18 Oct 2016 18:52:43 +0000 (14:52 -0400)
committerIan Weller <ian@gaslightmedia.com>
Tue, 18 Oct 2016 18:52:43 +0000 (14:52 -0400)
I was told by Jodie to make the header image 100% wide and 300px in
height.

functions.php

index 558695b..721ef79 100644 (file)
@@ -237,10 +237,10 @@ function glm_get_header() {
     if ( has_post_thumbnail($post_id) && is_post_type('page')) {
         
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");
-            echo ' style="background-image: url('.$image_data[0].');padding:0;background-position: top center;background-repeat:no-repeat;min-height: 430px;width: 100%;max-width:1600px;margin: 0 auto; "';
+            echo ' style="background-image: url('.$image_data[0].');padding:0;background-position: top center;background-repeat:no-repeat;min-height: 300px;background-size: 100%;margin: 0 auto; "';
         
     } else {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0;background-position: top center;background-repeat:no-repeat;min-height: 430px;width: 100%;max-width:1600px;margin: 0 auto; "';
+            echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0;background-position: top center;background-repeat:no-repeat;min-height: 300px;background-size: 100%;margin: 0 auto; "';
             echo ' class="no-featured"';
     }
     echo '>';