Unable to change cart buttons text.
-
Hello.
I need to change the text of the cart loot boxes and make them shorter. This can usually be done by inserting some code into the child-basel function.php file.
add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘basel_custom_cart_button_text’ ); // Prodotto singolo
add_filter( ‘woocommerce_product_add_to_cart_text’, ‘basel_custom_cart_button_text’ ); // Archivi prodotti
function basel_custom_cart_button_text( $text ) {
return ‘Compra Ora’; // Cambia con il testo che preferisci
}
Hello.
I need to change the text on the cart buttons (product page and product archive) to make them shorter and different. Typically, you can do this by inserting code like the following into the child-basel’s function.php file, but it doesn’t work…
I’m wondering if there’s a theme override… which I’ve noticed on other sites I have with basel. I’m also having the same issues with the checkout…. Any suggestions?
Thanks in advance.
Gius.
Hello,
Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.
The topic ‘Unable to change cart buttons text.’ is closed to new replies.