This topic is: not resolved
-
Hi there,
I need to change the default Add to Cart text when adding the Add to Cart element in visual composer. I have added the following to my child theme’s functions.php file which should change the default text on single product pages, but it hasn’t on the visual composer page.
// Change default add to cart text
// =============================================================================add_filter( ‘add_to_cart_text’, ‘woo_custom_cart_button_text’ ); // < 2.1
function woo_custom_cart_button_text() {
return __( ‘Get Started Now’, ‘woocommerce’ );
}
Your help would be appreciated. Thanks!