• Resolved maxc

    (@maxchentrens)


    Hi. Great plugin btw.

    How do I change the text from “Remove From Wishlist” button just to “Remove” on single product page.

    The css selector is (i think)…

    .woocommerce div.product .yith-wcwl-add-button #text {
    display: none !important
    }

    Please help me change this text.
    Cheers
    Max

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi Max

    If you appreciate our plugin, don’t forget to leave a review: it would be very important for us

    Back to your request, if you want to change the label for “Remove from Wishlist” button, you can use the following snippet of code

    if ( ! function_exists( 'yith_wcwl_change_remove_from_list_label' ) ) {
    	function yith_wcwl_change_remove_from_list_label() {
    		return 'Remove';
    	}
    	add_filter( 'yith_wcwl_remove_from_wishlist_label', 'yith_wcwl_change_remove_from_list_label' );
    }
    

    Just add it at the end of functions.php file of your theme or child and this will change button label as requested

    Thread Starter maxc

    (@maxchentrens)

    Thanks. Worked a treat. Excellent support. Over now to review.

    Plugin Author YITHEMES

    (@yithemes)

    You’re welcome!

    Marking this topic as solved ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove from wishlist text’ is closed to new replies.