WordPress.org

Support

Support » Themes and Templates » [Resolved] function.php

[Resolved] function.php

  • Hi,

    I asked to woocommerce how to change a cart button text.
    They asked me add this code in your function.php file
    Your functions.php file is located inside your theme. my-theme -> functions.php

    the code is :

    add_filter( ‘add_to_cart_text’, ‘woo_custom_cart_button_text’ ); // < 2.1
    add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’ ); // 2.1 +

    function woo_custom_cart_button_text() {

    return __( ‘My Button Text’, ‘woocommerce’ );

    Could you say me if I need to copy paste the code here :
    Appearance->Theme option->Advanced settings->Custom Css

    Thank you so much

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] function.php’ is closed to new replies.