Hello there,
hope you are doing well ??
To change on hover ‘Add to wishlist’ text, you will need to follow these steps:
– Create the following template in your active theme:
wp-content/themes/your_active_theme/woocommerce/add-to-wishlist-button.php
– Put this code inside of the file:
<?php
/**
* Add to wishlist button template
*
* @author Your Inspiration Themes
* @package YITH WooCommerce Wishlist
* @version 2.0.8
*/
if ( ! defined( 'YITH_WCWL' ) ) {
exit;
} // Exit if accessed directly
global $product;
?>
<a href="<?php echo esc_url( add_query_arg( 'add_to_wishlist', $product_id ) )?>" rel="nofollow" data-product-id="<?php echo $product_id ?>" data-product-type="<?php echo $product_type?>" class="<?php echo $link_classes ?>" >
<?php echo $icon ?>
<span><?php echo $label ?></span>
</a>
<img src="<?php echo esc_url( YITH_WCWL_URL . 'assets/images/wpspin_light.gif' ) ?>" class="ajax-loading" alt="loading" width="16" height="16" style="visibility:hidden" />
– Add the following CSS rules in Appearance -> Customize -> Additional CSS:
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover a.add_to_wishlist:after {
content: 'your text';
}
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover a span{
display: none;
}
You will need to change ‘your text’ for whatever you want.
Let us know.
Have a great day!
-
This reply was modified 5 years, 1 month ago by YITHEMES.