Site logo

Archived topic

Change "Read more" button in woocommerce

9 replies · Started by Christopher on January 22, 2019

Viewing posts 1–10 of 10

Hi there,

How can I change the text on "read more" button in woocommerce. I tried in "customize > blog" but that only changes the entries button.

Any suggestion?

Thanks !!

Hi there,

You could try this:

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
    if ( 'Read more' == $text ) {
        $text = __( 'More Info', 'woocommerce' );
    }

    return $text;
} );

Let me know :)

it worked , thank you very much Tom !

You're welcome :)

Hey Tom,

Where the code you give us need to add to? Pls, give me the path (Filename). Thanks!

Hey Leo,

I didn't mean that. I am facing the same issue as Christopher. I want to know where to add this

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
if ( 'Read more' == $text ) {
$text = __( 'More Info', 'woocommerce' );
}

return $text;
} );

I can't seem to get this php to work. Could there be a new version of this function?

That filter should still be valid :)

This archived topic is closed to new replies.