Support » Plugin: YITH WooCommerce Quick View » Change the QV button text for an icon

  • Hi, i want to change the text of the Quick View button for a Font awesome icon.

    I tried to write this
    <i class =" fa fa-search "> </ i>
    editing the HTML code in the inspector window and the icon is displayed correctly, but I do not know where to put this code to substring the text string for the icon.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    try to add this code on your theme’s functions.php and let me know if it works.

    
    add_filter( 'pre_option_yith-wcqv-button-label', 'filter_ywcqv_button_label', 10, 2 );
    function  filter_ywcqv_button_label( $value, $option ){
        return '<i class =" fa fa-search "> </ i>';
    }
    

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Change the QV button text for an icon’ is closed to new replies.