Okay... I figured out how to change the text int he buttons in functions.php
// To change add to cart text on single product page add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); function woocommerce_custom_single_add_to_cart_text() { return __( 'Buy Now', 'woocommerce' ); }
// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
However, how to change the font size and button size via CSS please?
Actually, I think it would be easier this way: Is there any way to remove the ADD TO CARD button from all shop pages and WPBakery woocommerce listings? Having add to cart ONLY in product page would be ideal.
Comments
to change the text of the button,
I guess.
Actual I just want to change the text of ONE PRODUCT only,
The donation (in one product), I wish to change the ADD TO CART button to DONATE NOW.
Any solution? Thanks!