I made it harder than it needed to be.
authorIan Weller <ian@gaslightmedia.com>
Mon, 13 Feb 2017 21:57:45 +0000 (16:57 -0500)
committerIan Weller <ian@gaslightmedia.com>
Mon, 13 Feb 2017 21:57:45 +0000 (16:57 -0500)
I did several trial and errors to see if I could keep the original code.
But it came down to changing the background size from contain to cover.
A simple fix, yet I made it harder than it needed to be as usual.

css/app.css
functions.php
scss/_structure.scss

index f1073dc..9b9c10b 100755 (executable)
@@ -6218,7 +6218,7 @@ header {
 #still {
   margin-top: 0;
   padding-top: 0;
-  background-size: contain !important;
+  background-size: cover !important;
   /*    background-position: center !important;*/
   background-repeat: no-repeat !important;
   position: relative; }
index c1b8b2a..29a2a27 100755 (executable)
@@ -107,7 +107,7 @@ function GLM_get_header() {
     if (has_post_thumbnail()) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
             echo '<header id="still" style="background: url('.$image_data[0].');'
-                    . 'min-height: 400px;max-height: 400px"></header>';
+                    . 'min-height: 400px;max-height: 400px;"></header>';
     } else {
             echo '<header id="still" style="background: url('.get_template_directory_uri().'/assets/default-header.jpg);'
                     . 'min-height: 400px;max-height: 400px"></header>';
index 2d7afdc..68d6f23 100755 (executable)
@@ -79,7 +79,7 @@ header {
 #still {
     margin-top: 0;
     padding-top: 0;
-    background-size: contain !important;
+    background-size: cover!important;
 /*    background-position: center !important;*/
     background-repeat: no-repeat !important;
     position: relative;