From: Ian Weller Date: Thu, 20 Apr 2017 20:43:46 +0000 (-0400) Subject: fixed feature image style. X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=74b8c5d6fd682543d5f8002d46aadfc8599d92d5;p=WP-Themes%2Friverboattoursmi.git fixed feature image style. I adjusted the placement of the feature image on interior pages. --- 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 '>';