echo '</div>';
} else {
echo '<div';
- if (has_post_thumbnail() && !is_post_type('post') && !is_home()) {
+ if (has_post_thumbnail() && !is_post_type('post') && !is_home() && !is_woocommerce() ) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_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: 300px; "';
echo ' class="featured-image no-featured"';