From 74b8c5d6fd682543d5f8002d46aadfc8599d92d5 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Thu, 20 Apr 2017 16:43:46 -0400 Subject: [PATCH] fixed feature image style. I adjusted the placement of the feature image on interior pages. --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 9b511e1..2f9cb5a 100644 --- a/functions.php +++ b/functions.php @@ -238,10 +238,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;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 250px; "'; + 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: 250px; "'; } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/riverboat_boat-1.jpg);padding:0;padding-bottom:30%;background-position:top center;background-size:cover;background-repeat:no-repeat;max-height: 250px; "'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/riverboat_boat-1.jpg);padding:0;padding-bottom:30%;background-position:center center;background-size:cover;background-repeat:no-repeat;max-height: 250px; "'; echo ' class="no-featured"'; } echo '>'; -- 2.17.1