• Hi. Currently, when I’m viewing a product that’s been added to compare, the text on the compare button is changed to “Added”. That could be confusing to our visitors as they may think it’s been added to the shopping cart. Is there any way I can change the text to “Added to compare” or similar? Thanks.

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

    (@yithemes)

    Hello @snowmoon,

    please add this custom code to the file functions.php of your theme, replacing “Your custom string” with the text that you want show.

    if( !function_exists('yith_woocompare_set_new_text_for_added_label') ){
        function yith_woocompare_set_new_text_for_added_label( $label ){
            $label = "Your custom string";
            return $label;        
        }
        add_filter('yith_woocompare_compare_added_label','yith_woocompare_set_new_text_for_added_label');
    Thread Starter snow

    (@snowmoon)

    Thank you! That worked, except there’s a right curly bracket missing, just before add_filter. Thanks again.

    Plugin Author YITHEMES

    (@yithemes)

    Yes, sorry ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change text from “Added” to something else’ is closed to new replies.