From f526971a86480b7613c9d49ee6f2d2757d1da6ba Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 30 Jun 2016 16:21:17 -0400 Subject: [PATCH] decreasing height for product page featured images --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"'; -- 2.17.1