-
dusl0616
Hello,
I am currently using the Connections theme. As shown in the image, I would like to change the name of the “Read More” button in the Shop menu.
I have already checked both the Appearance settings and WooCommerce settings, but I couldn’t find any option to modify it.
Could you please guide me on where I can make this change?
Thank you for your help.
-
Hi there,
the text of the button is set by Woocommerce.
You can use this PHP Snippet to change it:add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) { if ( 'Read more' == $text ) { $text = __( 'Your text here', 'woocommerce' ); } return $text; } );
-
dusl0616
Oh.. Thank you very much. I’ll try. 🙂
-
You’re welcome
-
I also need to change the “read more” text. I am using this snippet, and it sort of works, but only after re-loading the page. On the initial page load, the text still says Read More. Strange. Thoughts?
-
Can you open a new topic and link us to the page in question?
- You must be logged in to reply to this topic.