[Resolved] WPML and Elementor display conditions for templates
This thread is resolved. Here is a description of the problem and solution.
Problem:
Every time the client edit manually his header in the secondary language, display conditions are lost in both original and secondary language.
Solution:
In that particular case, because the client is editing the secondary language header after the translation has been done it's better to set the translation preferences to "Copy" for display conditions.
- Go to "WPML > Settings > Custom Fields Translation"
- Click "Show system fields"
- Change the translation preferences for the field "_elementor_conditions" to "Copy"
Hi, there is a known issue with WPML and Elementor display conditions for templates. I will give an example.
Default language: Greek
Header template
Disply conditions: Entire site
Secondary language: English
Editing the English template with elementor asks for conditions when saving.
Save without conditions
Website front end misses the greek conditions and displays the default theme layout, not the elementor's
This issue is happening on every single template editing in the secondary language, single post, page, woocommercve conditions, everywhere.
The elementor team asked me to contact WPMl since this is something related to the translations.
Hi Nicolas, thank you for the reply. I did manage to replicate the issue on the staging site, I am providing you the link to the video demonstration. It looks like that this issue occurs when editing the templates form the backend. I tried editing the template from the frontend without any issues. hidden link
I think I found a workaround.
- Go to "WPML > Settings > Custom Fields Translation"
- Click "Show system fields"
- Change the translation preferences for the field "_elementor_conditions" to "Copy"
Please test before implementing it to your live site.
The default preference is "Don't translate" but I think that in your case, because you're working on the translation afterwards it will help to keep conditions from the original.
Hio Nicolas, thank you so much for the solution. This fixed the conditions issue and it really works great. I wish you a very pleasant weekend. Thanks again.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.