If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
How to change Related Product text please? I want to have ‘You may also like these’
I guess you have to edit the .po file in woocommerce and change the string
try to open up your wp-content/plugins/woocommerce/templates/single-product/related.php file.
Around line 12 you´ll find this:
Change the ‘Related Products’ to whatever you want but remember that is hardcoded change, be aware of that on a next update.
The funny thing is that i´m using woocommerce in other language than english and i can do this change via the .po file
Tell me if you succeed :-)
Thanks again for your help. That worked perfectly.
BTW what did you mean by .po file. I went into related.php as you suggested and works quite well. Thanks again
The “.po” and “.mo” are files that handle translations in WP and plugins, some useful links:
Take a look at your woocommerce/languages folder to see how many languages are distributed with the version. However there is not an English file because the default is english.
So for instance, let´s say that you want to change all the strings of woocommerce keeping up the english as your default language, you´d have to generate a POT ( catalog file) and the corresponding .po and .mo files. Otherwise you´ll need to change the files in the core php files what not alaways is a good practice because in case of further updates you´ll loose your work…
The topic ‘Change Related Product Text’ is closed to new replies.