From c2a982442b302c59036c8cc9946d8b5f1e1fb230 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 5 Nov 2019 13:47:47 -0500 Subject: [PATCH] Default product featured image is now a jpg instead of a png --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 3e66552..8e56af3 100644 --- a/functions.php +++ b/functions.php @@ -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; "'; -- 2.17.1