Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #169088

    I’d like to change the text that appears on the buttons that show up over products. Currently, they read, “Add to Cart”, “Read More”, and “Show Details”. Where can I change this text?


    Hey rishmish!

    1.) Show Details

    Edit woocommerce-config > config.php, find this code:

    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";

    2.) Add to Cart

    Add this code on functions.php:

    add_filter( 'add_to_cart_text', 'avia_custom_add_to_cart_text');
    function avia_custom_add_to_cart_text() { 
            return __( 'My Button Text', 'woocommerce' );


Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Change Product Hover Text’ is closed to new replies.