Add to Basket text is not changing
-
Hi Team,
I’m using the latest version of WooCommerce. I want to change
Add to Basket
text toAdd to cart
. So, I have added below code to myfunction.php
file to change Add to basket text.add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); function woo_custom_cart_button_text() { return __('Add to cart', 'woocommerce'); } add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); function woo_archive_custom_cart_button_text() { return __('Add to cart', 'woocommerce'); }
But, It is not changing the text on add to cart button. However, If I used
Add to Cart
* with capital C instead ofAdd to cart
the button text are changing.Why? and how to change the text as
Add to cart
without capital C?Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add to Basket text is not changing’ is closed to new replies.