else
$post_id = $post->ID;
- if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive()))) {
+ if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");
echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "';
} else {