Home › Forums › Support › Change "Read more" button in woocommerce This topic has 9 replies, 2 voices, and was last updated 2 years, 4 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts January 22, 2019 at 5:44 am #788849 Christopher 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 !! January 22, 2019 at 8:47 am #789129 TomLead Developer Lead Developer 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 π January 22, 2019 at 9:06 am #789151 Christopher it worked , thank you very much Tom ! January 22, 2019 at 3:17 pm #789466 TomLead Developer Lead Developer You’re welcome π December 23, 2019 at 6:24 pm #1112794 Julia Hey Tom, Where the code you give us need to add to? Pls, give me the path (Filename). Thanks! December 23, 2019 at 6:45 pm #1112802 LeoStaff Customer Support Adding PHP: https://docs.generatepress.com/article/adding-php/ December 23, 2019 at 7:03 pm #1112808 Julia 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; } ); December 23, 2019 at 7:46 pm #1112824 LeoStaff Customer Support That PHP snippet needs to be added using one of the methods I linked here: https://generatepress.com/forums/topic/change-read-more-button-in-woocommerce/#post-1112802 January 27, 2021 at 4:47 pm #1636240 Kyle Thomas I can’t seem to get this php to work. Could there be a new version of this function? January 27, 2021 at 5:23 pm #1636252 LeoStaff Customer Support That filter should still be valid π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In