WooCommerce: Change “Add to Cart” Button Text

Add this code as a new snippet, and change “Add to Bag” to what you want the button to say:


// Change the add to cart text on single product pages
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
function woo_custom_cart_button_text() {
return __( 'Add to Bag', 'woocommerce' );
//Change the add to cart text on product archives
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 +
function woo_archive_custom_cart_button_text() {
return __( 'Add to Bag', 'woocommerce' );

Need Help?

Tell us about your project!

  • Date Format: MM slash DD slash YYYY
Previous Post
Divi Theme: Adjust Column Stacking Order on Mobile Devices
Next Post
Small Business Website Design: The Complete Guide

Related Articles

Google Rating
Based on 54 reviews
Get a Quote