-
-
Save thegdshop/2141771 to your computer and use it in GitHub Desktop.
<?php | |
add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text'); | |
function woo_custom_cart_button_text() { | |
return __('My Button Text', 'woocommerce'); | |
} | |
?> |
It does work but doesn't change it everywhere just on the single product page. I'll see if i can modify it elsewhere. Is there a way to change the word cart throughout the woo commerce? I'd like to change it to basket. Anyone have any tips, snippets? Thanks.
Snippet to change button text on category view pages. Basically just change 'single_add_to_cart_text' to 'add_to_cart_text'
https://gist.github.com/fender841/5255958
I just had a fatal error in here. i added theses lines in woocommerce-core-functions.php . Think im wrong cause it shuld be in functions.php... Suddenly my webstite is down and cannot access tu www.mysite.com/wp.admin. But still have access via ftp.
I reallny need help. any ideas of what to do?
hey peternortefb..
same error is occur with my site and solved it.
you can go to ur cpanel and then open function.php through file manager then delete the code which u pasted..
problem solved
This does not seem to work for me. Is there an updated snipped. Thanks