This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with image alignment on a bilingual website. The French translation, which is longer than the English version, causes the image in the adjacent column to have undesirable top and bottom margins. The client is unsure if changes made in the translated text should appear on the live site and is also confused about the appearance of a cog icon instead of a pencil icon after translation.
Solution: We recommend setting the image height to "auto" to accommodate the varying text lengths in different languages. This can be done by adding the following CSS rule:
This CSS rule should be added at Customizer > Additional CSS. It's important to note that this is not a WPML issue, as WPML will use the same image in both languages unless an alternative image is uploaded at WPML > Media Translation.
Take note, that when translating the content with the WPML Translation Editor then it will use the same settings in both language. In this case, the Elementor Page Builder Widgets all had the same setting, only the amount of text was different.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hallo,
Also, this is a style issue that is not WPML-related.
Elementor uses CSS Flexbox and sets the content to fit in evenly: This means, that there are not any fixed values. The Flexbox as it is designed here will always try to fit the content evenly in all areas.
I have already contacted Elementor about it, but I'm being ignored for now, no response from them for 3 days. The theme is use is called "Hello" and it is from Elementor itself. If I had known that Elementor could not work with a bilingual website, I would have looked elsewhere, perhaps ask WPML what they suggested.
The behavior with the text on your website is expected, as this is how the applied CSS rule from Elementor is supposed to work.
If you want different results, then you might need to apply custom CSS.
Please wait for the response of the Elementor Team, but please take note again, that this is not a WPML issue and there is not any issue regarding the translations.
Take note, that you also can create different layouts and designs per language with WPML if you translate the content manually, means directly inside the WordPress Editor or Elementor.
Only in this case, you can not use the WPML Translation Editor.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I am glad to hear that 🙂
If any further assistance from my side will be needed, please let me know.
This ticket will remain open for a maximum of 14 days and close automatically if we do not receive any further reply. If Elementor Support will be able to assist you, please feel free to mark this ticket as resolved.
To make it simpler I just deleted the prior CSS code I put in place on that page for testing purposes.
Now, all I'm really trying to do is to adjust the IMAGE size, not the text per se, based on amount of text adjacent to the image column.
I can easily adjust the image size for the original language page to get proper text spacing, but when it translates into French via WPML, I want the size of the image to enlarge so that there is no top/bottom margins around the image.
Sorry if I didn't explain properly. What I want to do has nothing to do with Elementor, in my opinion.
You only need to make sure to select the correct CSS selectors and set the image height to "auto". I already applied CSS for this issue and this issue was solved. Please apply the code again.
Once more, this is not a WPML issue, it is a design issue related to Elementor, for which I made a detailed video. The video also shows how to investigate, debug, and apply a solution for such issues.
WPML will always apply the same layout and design settings on all contents if you translate with the WPML Translation Editor.
If the translated text is longer, then WPML will not adjust the design automatically - this depends on the CSS of the site, or in this case Elementor.
If you do not agree, then please feel free to close this ticket and consult a different supporter.
You said Elementor uses Flexbox and that is what's causing the issue. Elementor is telling me to create pages with Flexbox to resolve the issue.
Here's their reply:
With columns and sections this is currently not possible, you can try the feature flexbox which adds containers (this replaces columns and sections)
Please read more about this feature on following links (there are also many youtube tutorials from content creators you can do simple search as "Elementor flexbox") hidden link
More articles: hidden link hidden link