Shop pages no longer use the featured image of the first product, but the default...
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 May 2018 15:04:05 +0000 (11:04 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 9 May 2018 15:04:05 +0000 (11:04 -0400)
functions.php

index afac622..1abc7e8 100644 (file)
@@ -117,7 +117,7 @@ function glm_get_header() {
        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"';