Essential grid button - by Teya Bozhilova

This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Robert Hall

  • Avatar: Teya Bozhilova
    Teya Bozhilova
    Participant
    April 29, 2016 at 09:38

    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”?

    1 Answer
    Avatar: Robert Hall
    Robert Hall
    Support staff
    April 29, 2016 at 10:02

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.