From 32591f0c8568b65b2cebe7126197c2ccd5d34c2c Mon Sep 17 00:00:00 2001 From: ThemeGrill Date: Thu, 26 Mar 2020 14:46:08 +0545 Subject: [PATCH 1/2] Enhancement - YITH wishlist compatible product grid widget --- inc/widgets/class-estore-woocommerce-product-grid.php | 7 +++---- style.css | 8 ++++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/inc/widgets/class-estore-woocommerce-product-grid.php b/inc/widgets/class-estore-woocommerce-product-grid.php index c7b8bcf..63d9cfc 100644 --- a/inc/widgets/class-estore-woocommerce-product-grid.php +++ b/inc/widgets/class-estore-woocommerce-product-grid.php @@ -233,10 +233,9 @@ function widget( $args, $instance ) { get_id() ); - ?> - - + echo do_shortcode( '[yith_wcwl_add_to_wishlist link_classes="single_add_to_wishlist"]' ); + } + ?> diff --git a/style.css b/style.css index a14bdf7..d173bac 100644 --- a/style.css +++ b/style.css @@ -2579,7 +2579,7 @@ body { margin: 15px 0 20px; } -.hot-content-wrapper .single_add_to_wishlist { +.hot-content-wrapper .single_add_to_wishlist, .hot-content-wrapper .yith-wcwl-wishlistexistsbrowse a{ background: #00A9E0; border-radius: 25px; padding: 5px 15px; @@ -2588,11 +2588,15 @@ body { font-weight: 600; } -.hot-content-wrapper .single_add_to_wishlist:hover { +.hot-content-wrapper .single_add_to_wishlist:hover, .hot-content-wrapper .yith-wcwl-wishlistexistsbrowse a:hover { background: #0191BC; color: #ffffff; } +.hot-content-wrapper .yith-wcwl-wishlistexistsbrowse span { + display: none; +} + .hot-content-wrapper .single_add_to_wishlist i { margin-left: 3px; } From 39942fef797d8044cf5d2d5120bdfa7b45116732 Mon Sep 17 00:00:00 2001 From: ThemeGrill Date: Thu, 26 Mar 2020 15:36:52 +0545 Subject: [PATCH 2/2] Enhancement - YITH wishlist compatible product carousel widget --- .../class-estore-woocommerce-product-carousel.php | 9 ++++----- style.css | 12 ++++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/inc/widgets/class-estore-woocommerce-product-carousel.php b/inc/widgets/class-estore-woocommerce-product-carousel.php index 927101d..fda0fad 100644 --- a/inc/widgets/class-estore-woocommerce-product-carousel.php +++ b/inc/widgets/class-estore-woocommerce-product-carousel.php @@ -233,11 +233,10 @@ function widget( $args, $instance ) { get_id() ); - ?> - - + if ( function_exists( 'YITH_WCWL' ) ) { + echo do_shortcode( '[yith_wcwl_add_to_wishlist link_classes="single_add_to_wishlist"]' ); + } + ?>