Home›Support›English Support›[Resolved] Elementor container templates only appear in original language not translated language
[Resolved] Elementor container templates only appear in original language not translated language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where Elementor container templates translated into Russian were still displaying in English on the Russian version of the site, despite using the correct translated shortcodes.
Solution: The issue was resolved by modifying the code snippet used in the template. The original code forced the template to revert to English after switching languages, which prevented the Russian translation from displaying. The corrected code snippet ensures that the template switches back to the original language after fetching data in English, allowing the Russian version to display correctly. Here is the corrected code:
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to use Elementor container templates on various pages of my site. I have translated these containers into Russian using the ATE, and the translations are complete with no missing sections. I placed the shortcode for the English container into the pages, and they appear fine in English. However, when switching to Russian, they only appear in English. I have cleared the server and browser cache, but it didn't work. I also tried putting the shortcode for the Russian translation of the 'visa application fees' container onto the Russian page, but it is still in English. The issue can be seen on this page: hidden link.
Symptoms:
The Elementor container templates appear in English on the Russian version of the page, despite being translated. Clearing the cache did not resolve the issue.
Questions:
Why are the Elementor container templates not displaying in Russian on the translated pages?
How can I ensure that the translated shortcodes display the correct language content?
Thanks for contacting WPML forums support. I'll be glad to help you today.
First of all, sorry for the late reply; it was due to a higher workload.
I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please back up your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
The site is still backed up, please proceed. I would be grateful if we could get this resolved today as this issue has blocked development for over a week.
I've run some tests but the issue persists. Can you create a staging site with a copy of the live site where we can run further tests without affecting the production site?
Hi Chris,
Thank you very much for creating the staging site.
I have updated the outdated plugins (except Elementor Pro) and ran the Elementor database update. Then I deactivated all plugins, except the necessary ones, and you can see the text is translated correctly: hidden link
Please start activating the plugins, one by one, until the issue appears again and you find the culprit.
Let me know the results of the steps described above.
Note: I had to change the Language URL Format in WPML -> Languages to 'Language name added as a parameter' and re-save the permalinks because in this site, the 'Different languages in directories' option wasn't working (probably because of the URL of the staging)