From d071d8a87f642a42febafbd23c8d0b4271b399d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Fri, 13 May 2022 14:54:10 +0200 Subject: [PATCH] Fix duotone for fixed and repeated images on the front end --- src/BlockTypes/FeaturedProduct.php | 69 ++++++++++++++++++------------ 1 file changed, 42 insertions(+), 27 deletions(-) diff --git a/src/BlockTypes/FeaturedProduct.php b/src/BlockTypes/FeaturedProduct.php index c77597a7771..cd10147eec8 100644 --- a/src/BlockTypes/FeaturedProduct.php +++ b/src/BlockTypes/FeaturedProduct.php @@ -96,16 +96,16 @@ protected function render( $attributes, $content ) { $image_url = esc_url( $this->get_image_url( $attributes, $product ) ); - $styles = $this->get_styles( $attributes, $image_url ); - $classes = $this->get_classes( $attributes ); - $wrapper_classes = $this->get_wrapper_classes( $attributes ); + $classes = $this->get_classes( $attributes ); $output = sprintf( '