Can’t change ‘cart’ to be ‘basket’ in woocommerce

I’ve tried adding this code:

add_filter( 'woocommerce_product_single_add_to_cart_text', 
'woo_custom_cart_button_text' );
 add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );   

 function woo_custom_cart_button_text() {
    return __( 'Add to basket', 'woocommerce' );

To functions PHP, but as you can still see by this page, only some of the text has changed to ‘basket’

Page with ‘cart’

However, on the other page it seems to have worked:
Working page

Why won’t it change on the other page (the text), but on the single product page?

Read more here: Can’t change ‘cart’ to be ‘basket’ in woocommerce

Leave a Reply

Your email address will not be published. Required fields are marked *