changing background position from top to center for interior pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 5 Jul 2016 16:22:52 +0000 (12:22 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 5 Jul 2016 16:22:52 +0000 (12:22 -0400)
css/app.css
functions.php
scss/_page.header.scss

index 2e5f88f..3079ddc 100644 (file)
@@ -6295,7 +6295,7 @@ header.main {
   height: 137px;
   background: #FFFFFF;
   z-index: 5; }
-  @media (max-width: 732px) and (min-width: 640px) {
+  @media (max-width: 732px) and (min-width: 639px) {
     header.main {
       height: 177px; } }
   header.main span {
index 2fe6fa3..d826413 100644 (file)
@@ -226,7 +226,7 @@ function glm_get_header() {
     }
     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");
-            echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 370px; "';
+            echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 370px; "';
     } else {
             echo ' style="background-image: url('.get_template_directory_uri().'/assets/header-images-2.jpg);padding:0;padding-bottom:30%;background-position:center center;background-size:cover;background-repeat:no-repeat;max-height: 370px; "';
             echo ' class="no-featured"';
index 5466852..6b45f6e 100644 (file)
@@ -3,7 +3,7 @@ header.main {
     height: 137px;
     background: $white;
     z-index: 5;
-    @media(max-width: 732px) and (min-width: 640px){
+    @media(max-width: 732px) and (min-width: 639px){
         height: 177px;
     }