Hey, Nicolas, many thanks for your code indeed everything works. Really appreciate it.
Do you have a solution for the 2nd issue with wishlist translation on the user account page?
Thanks.
John : And also, in this photo, is the second issue. It's about the wishlist, which is translated but in the "my account" it's showing the text translated in original language(german).
Could you please re-share your credentials as they are deleted as soon as a ticket is marked as solved. I have activated the private field.
I checked the screenshot and also visited the frontend and I can already see that the "Wishlist" links at the top is translated correctly so the issue is only in "My account".
I dig a bit further and found where the cade was in your theme.
- Access your server via FTP
- Go to "/wp-content/themes/xts-vega/framework/modules/wc-wishlist/class-ui.php"
- Line 228 replace this:
In short: this code looks if WPML is active and then use the wpml_object_id_filter to get the translated page_id to get the correct page title. If WPML is not active it will use the default code from the plugin.
Could you please check if it works for you and also, it would be great to contact the theme author and report that issue. Maybe they can improve that code or even implement it in a next release as I saw they work already hard to make the plugin compatible with WML.