Default product featured image is now a jpg instead of a png
authorLaury GvR <laury@gaslightmedia.com>
Tue, 5 Nov 2019 18:47:47 +0000 (13:47 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 5 Nov 2019 18:47:47 +0000 (13:47 -0500)
functions.php

index 3e66552..8e56af3 100644 (file)
@@ -231,7 +231,7 @@ function glm_get_header() {
         $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(101), "full");
         
         if (!$image_data) {
-            $featured_image_url = get_template_directory_uri().'/assets/default-product-featured.png';
+            $featured_image_url = get_template_directory_uri().'/assets/default-product-featured.jpg';
         } else {
             $featured_image_url = $image_data[0];
         }
@@ -260,7 +260,7 @@ function glm_get_header() {
             $thumbnail = z_taxonomy_image_url( (int)$object->object_id );
 
             if (!$thumbnail) {
-                $thumbnail = get_template_directory_uri().'/assets/default-product-featured.png';
+                $thumbnail = get_template_directory_uri().'/assets/default-product-featured.jpg';
             }
         
             echo ' style="background-image: url('.$thumbnail.'?v=1.0);padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 370px; "';