I want to change this button names to something else, but just changing the page name doesn’t work.
Question posted in Woocommerce
The official Woocommerce documentation can be found here.
The official Woocommerce documentation can be found here.
2
Answers
Find the Id or class of that element and use jQuery to change the name.
If the element is a Anchor tag, use the below code.
If the element is button, use below code based on type of button.
From the screenshot, it seems like you are trying to change the text of a menu link (My Account). If so make sure that you haven’t given any custom name for My Account page in the WordPress navigation.
Inspect the page using developer tools and find the Class/Id of that element.
Then you can use jQuery to alter the content using the below code.
Using ID Selector:
Using Class Selector
If you want to change the text of Add to Cart button, use the below code.