Home › Forums › WoodMart support forum › Change Add to cart button text
Change Add to cart button text
- This topic has 7 replies, 2 voices, and was last updated 7 years, 1 month ago by
Artem Temos.
-
AuthorPosts
-
January 22, 2018 at 4:09 am #34650
marouane91ParticipantHello,
As the title says, i’ve been trying to change the Add to cart button in my products page, i tried using the code from the page below in my functions.php file in (child theme) but it doesn’t seem to work.
Coud you please tell me specifically where i can edit the texts button ?
https://docs.woocommerce.com/document/change-add-to-cart-button-text/
Thank you so much in advance.
Kindly to you
January 22, 2018 at 7:40 am #34672
Artem TemosKeymasterHello,
Try to change it with a Loco Translate plugin. Here is a video tutorial that should help you https://www.youtube.com/watch?v=D3NsDdMzsls
This text should be found in the WooCommerce translations files.Regards
January 22, 2018 at 9:00 am #34680
marouane91ParticipantThank you for your reply,
I’ve read about this solution on the documentation but i don’t want to install an additional plugin just for a 3 words, i already have plenty of plugins in my site i don’t wanna suffocate my WordPress with an additional plugin.
So if there is another way around, more like a direct approach towards resolving this, i’ll appreciate it.
Thank you for your concern
January 22, 2018 at 9:05 am #34685
Artem TemosKeymasterYou just need to rename your words in the PO files using this plugin and then simply delete the plugin. It needed to create translations files only.
January 22, 2018 at 9:23 am #34689
marouane91ParticipantI did by your advice and installed the plugin and replaced all the chain caracters where there was “Add to cart” and changed them by “Subscribe” but it doesn’t seem to work, no changes are made on the button ?
I’m i doing something ? or is there another away i can reach a certain specific file where i can edit this text from the code directly ?
Thanks
January 22, 2018 at 10:26 am #34705
Artem TemosKeymasterPlease, provide us your admin access so we can check your translations.
February 1, 2018 at 8:32 am #36698
marouane91ParticipantHi Artem,
I am very sorry for the late answer, regarding my issue i solved it by change the “Add to cart” text directly in a php file located at “/wp-content/plugins/woocommerce/includes”, because the translation method didn’t work for me even though it seemed that i did everything just fine.
Anyway the solution mentionned above worked great for me.
Sorry again for the delay and i thank you for your help.
Kindly
February 1, 2018 at 8:42 am #36704
Artem TemosKeymasterGreat, we are glad that you have found the solution.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register