Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions inc/widgets/class-estore-woocommerce-product-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,10 @@ function widget( $args, $instance ) {
<?php endif; ?>

<?php
if( function_exists( 'YITH_WCWL' ) ){
$url = add_query_arg( 'add_to_wishlist', $product->get_id() );
?>
<a href="<?php echo esc_url($url); ?>" class="single_add_to_wishlist" ><?php esc_html_e('Add to Wishlist','estore'); ?><i class="fa fa-heart"></i></a>
<?php } ?>
if ( function_exists( 'YITH_WCWL' ) ) {
echo do_shortcode( '[yith_wcwl_add_to_wishlist link_classes="single_add_to_wishlist"]' );
}
?>
</div><!-- featured content wrapper -->
</li>
<?php
Expand Down
7 changes: 3 additions & 4 deletions inc/widgets/class-estore-woocommerce-product-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,9 @@ function widget( $args, $instance ) {
</div>
<?php
if( function_exists( 'YITH_WCWL' ) ){
$url = add_query_arg( 'add_to_wishlist', $product->get_id() );
?>
<a href="<?php echo esc_url($url); ?>" class="single_add_to_wishlist" ><?php esc_html_e('Add to Wishlist','estore'); ?><i class="fa fa-heart"></i></a>
<?php } ?>
echo do_shortcode( '[yith_wcwl_add_to_wishlist link_classes="single_add_to_wishlist"]' );
}
?>
</div> <!-- hot-content-wrapper end -->
</div> <!-- hot-product-content-wrapper end -->
</div> <!-- hot product block end -->
Expand Down
20 changes: 14 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down Expand Up @@ -3041,7 +3045,7 @@ body {
background: none;
}

.featured-slider li .single_add_to_wishlist {
.featured-slider li .single_add_to_wishlist, .featured-slider li .yith-wcwl-wishlistexistsbrowse a {
background: #ffc300 none repeat scroll 0 0;
border-radius: 25px;
color: #ffffff;
Expand All @@ -3051,10 +3055,14 @@ body {
margin: 10px 0 15px;
}

.featured-slider li .single_add_to_wishlist:hover {
.featured-slider li .single_add_to_wishlist:hover, .featured-slider li .yith-wcwl-wishlistexistsbrowse a:hover {
background: #e2ae04;
}

.featured-slider li .yith-wcwl-wishlistexistsbrowse span {
display: none;
}

.featured-slider li .single_add_to_wishlist i {
margin-left: 5px;
}
Expand Down Expand Up @@ -3698,7 +3706,7 @@ ul.wp-block-gallery {

.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .add_to_wishlist.button.alt,
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a {
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a {
background: #00A9E0 none repeat scroll 0 0;
border-radius: 25px;
color: #ffffff;
Expand All @@ -3712,7 +3720,7 @@ ul.wp-block-gallery {

.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .add_to_wishlist.button.alt:hover,
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a:hover,
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a:hover {
.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a:hover {
background: #0191BC;
}

Expand Down