From: Anthony Talarico Date: Thu, 30 Jun 2016 20:21:17 +0000 (-0400) Subject: decreasing height for product page featured images X-Git-Tag: v1.0.0^2~47 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f526971a86480b7613c9d49ee6f2d2757d1da6ba;p=WP-Themes%2Ffrancejourneys.git decreasing height for product page featured images --- diff --git a/functions.php b/functions.php index 8a11af8..eb4235f 100644 --- a/functions.php +++ b/functions.php @@ -222,11 +222,11 @@ function glm_get_header() { echo ' style="background-image: url('.$image_data[0].');height: 370px;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat; "'; } else if ( is_category() ){ $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(100), "full"); - echo ' style="background-image: url('.$image_data[0].');height:670px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "'; + echo ' style="background-image: url('.$image_data[0].');height:370px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "'; } 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].');height:670px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "'; + echo ' style="background-image: url('.$image_data[0].');height:640px;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 670px; "'; } else { echo ' style="background-image: url('.get_template_directory_uri().'/assets/header-images-2.jpg);height:670px;padding:0;padding-bottom:30%;background-position:center center;background-size:cover;background-repeat:no-repeat;max-height: 670px;min-height: 350px; "'; echo ' class="no-featured"';