From: Anthony Talarico Date: Tue, 5 Jul 2016 16:22:52 +0000 (-0400) Subject: changing background position from top to center for interior pages X-Git-Tag: v1.0.0^2~42 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=71daae4d3efe68b3687f874a297006f6ad5a4421;p=WP-Themes%2Ffrancejourneys.git changing background position from top to center for interior pages --- 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; }