Best not to alter source code. Any edits will be over-written by updates.
To change almost any text, you can “translate” it. “Translate” in this context also means using different words in the same language.
So try Loco Translate:
https://wordpress.org/plugins/loco-translate/
Activate, then:
Dashboard > Loco Translate > Plugins > WooCommerce > select your language > Edit
If you have theme override templates, look at
Dashboard > Loco Translate > Themes > your-theme-name > etc
In either case, click the Sync button, then filter for the string you want to change.
I’ve checked and “Sort by newness” is a translatable string.
Save in the custom location to make your translations update-safe:
https://localise.biz/wordpress/plugin/manual/msginit#locations
Any problems, study the Loco Translate documentation.
Thank you for that. I will check it out as soon as I’m done with my dinner. I’ll update this thread to say whether it worked, and will change the status to “resolved” if it works.
It worked like charm! Very very good. Thank you very much!
It took me a lot of time to figure out how to use it though (I left this page on my browser’s tab for over 5 days!) Worth it though! 😀
-
This reply was modified 8 years, 11 months ago by
celloblue. Reason: explained that it was a bit difficult to learn
-
This reply was modified 8 years, 11 months ago by
celloblue.