This topic has 2 replies, 2 voices, and was last updated 8 years, 8 months ago ago by Robert Hall
Hello,
I’m using Sidebar option with essential grid on front page as demo.
How do I shange the “Add to cart” button to “View Details”?
Hello,
Please add the following code to your functions.php file.
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 +
function woo_archive_custom_cart_button_text() {
return __( 'My Button Text', 'woocommerce' );
}
Regards,
Robert Hall
You must be logged in to reply to this topic.Log in/Sign up