This thread is resolved. Here is a description of the problem and solution.
Problem: I need to show the same template in both languages, greek and english but only one works. The other shows the default layout of the theme.
Solution: There is a workaround for this issue provided by our specialists. Please follow these steps to apply the workaround:
- Create a full backup of the site.
- Modify elementor-pro/modules/theme-builder/classes/conditions-cache.php Lines 96 - 101:
- Re-save the Display Conditions for each template.
Could you tell me if the workaround solves the issue?
Important note - This workaround has two effects:
1.- The conditions start working for all languages
2.- When you search for posts or pages etc in the Display Conditions dialog, ALL language posts are returned. This is more of a cosmetic issue but just so you know.
Relevant Documentation:
0% of people find this useful.
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.
1.- I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back-up the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
2.- Please increase the PHP Memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`
Hello,
Thank you very much for the information provided.
The cause of the issue is that the conditions to display the templates are not being translated correctly. This means that when you create a condition to display a template for archives (as in this case) in the default language it works correctly, however, when you translate this template and set the condition in the secondary language it will overwrite the condition in the default language.
Our compatibility specialists are aware of this issue and they are working on a solution. I have escalated this ticket so they can take a closer look at the issue on your site too.
I will get back to you as soon as I get an answer from them.
Hi Carlos, thank you for the reply. I have already contacted with the Elementor team to check this compatibility issue from their side so maybe the solution comes from their part. Anyway, this is a crusial issue between these two plugins and this fix will help us build amazing multilanguage websites.
There is a workaround for this issue provided by our specialists. Please follow these steps to apply the workaround:
- Create a full backup of the site.
- Modify elementor-pro/modules/theme-builder/classes/conditions-cache.php Lines 96 - 101:
- Re-save the Display Conditions for each template.
Could you tell me if the workaround solves the issue?
Important note - This workaround has two effects:
1.- The conditions start working for all languages
2.- When you search for posts or pages etc in the Display Conditions dialog, ALL language posts are returned. This is more of a cosmetic issue but just so you know.
My issue is resolved now. Thank you! I will share the solutuion with the Elementor team to correct the file and release a new update. Many many thanks.