Support » Plugin: WooCommerce Sold Out Products » How can i change the button text?

Viewing 5 replies - 1 through 5 (of 5 total)
  • And is it possible to get the same button text direcly on the products page where you can see all products ?

    Plugin Author Gerhard Potgieter

    (@kloon)

    Hi

    The text will display on both archive pages as well as single pages.

    To change the text please add the following code to your theme’s functions.php file

    add_filter( 'woocommerce_sold_out_flash', 'wc_custom_sold_out_flash_text' );
    function wc_custom_sold_out_flash_text( $text ) {
        return sprintf( '<span class="soldout">%s</span>', __( 'My New Text', 'wc-sold-out-products' ) );
    }

    Thank you so much !!

    Thx works great for me too!

    Gerhard, it works fine with desktop, but with jetpack mobile theme not. Maybe you have some decision?
    Thanks in advance, Alex!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can i change the button text?’ is closed to new replies.