-
-
hi
I would like to rename “COMPLETE THE LOOK” section on single product page
https://new.world4kidz.co.uk/product/wooden-world-map-puzzle/How can I do it?
Thank you- This topic was modified 6 years, 9 months ago by Volya.
-
Hello,
You can change the string in includes/codeless_functions_woocommerce.php file directly or in the pot file: june\lang\june.pot. Look for these lines:
#: includes/codeless_functions_woocommerce.php:1211 : msgid "Complete the Look" msgstr ""
Let us know.
Best regards!
-
hi
I changed “COMPLETE THE LOOK ” to “Buy together” in the pot file june\lang\june.pot
but still, see “COMPLETE THE LOOK” section name on the single product page https://new.world4kidz.co.uk/product/wooden-table-game-balancing/
I do not want to change includes/codeless_functions_woocommerce.php file directly
as it will be overwritten by next updatesI would like a solution when I DO NOT NEED to change this “name” every time after an update
Thank you
-
Hello,
That’s what the previous solution does. So that you can control this, in the pot file only. Did you chose the pot file as the language to be used in the site? Otherwise the changes mean nothing. Go to Settings > General > Site Language and select this file from the drop-down list.
So the site will use this file’s strings instead of the defaults. Keep a copy of the pot file in your computer to replace in case of future theme updates.
If you want i can do the changes for you. Just let me know.Best regards!
-
yes I setup English (UK) language in the settings
Please do this changes, thank you very much
-
Hello,
It’s done. The steps taken:
1-Add the replacement of the string you want to change in the pot file. Either by editing it directly from a notepad:#: includes/codeless_functions_woocommerce.php:1211 msgid "Complete the Look" msgstr "Buy together"
or editing from Poeditor: https://postimg.org/image/m0m1e80jp/
2-Add the language variable in file wp-config.php:
define('WPLANG','en_EN');
3-Set up the new language for the site in Settings > General > Site’s Language: https://postimg.org/image/7u6aj7011/
Check your site. The string is replaced already.
Best regards!
-
You must be logged in to reply to this topic.