Support » Plugins and Hacks » [Resolved] Changing "Add to cart" text

[Resolved] Changing "Add to cart" text

  • I would like to change the “Add to cart” button into my own text. Because it becomes too long in my language and therefore messes up the view from a mobile.
    Is this possible?
    Im using the Twenty Fourteen theme if it makes any difference and the link to the problem is:


Viewing 3 replies - 1 through 3 (of 3 total)
  • This might help you, if you’re not afraid of adding some custom code to the functions.php of your theme:

    Change add to cart button text

    Hi @amizomi, you can add below code into your theme functions.php:

    add_filter( 'add_to_cart_text', 'custom_cart_button_text' );
    add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_cart_button_text' );
    add_filter( 'woocommerce_product_add_to_cart_text', 'custom_cart_button_text' ); 
    function custom_cart_button_text() {
      return __( 'Your Add to Cart Text', 'woocommerce' );

    Thanks a lot guys! It worked:)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Changing "Add to cart" text’ is closed to new replies.