From 71daae4d3efe68b3687f874a297006f6ad5a4421 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 5 Jul 2016 12:22:52 -0400 Subject: [PATCH] changing background position from top to center for interior pages --- css/app.css | 2 +- functions.php | 2 +- scss/_page.header.scss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/app.css b/css/app.css index 2e5f88f..3079ddc 100644 --- a/css/app.css +++ b/css/app.css @@ -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 { diff --git a/functions.php b/functions.php index 2fe6fa3..d826413 100644 --- a/functions.php +++ b/functions.php @@ -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"'; diff --git a/scss/_page.header.scss b/scss/_page.header.scss index 5466852..6b45f6e 100644 --- a/scss/_page.header.scss +++ b/scss/_page.header.scss @@ -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; } -- 2.17.1