Skip Navigation

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:

.elementor-53293 .elementor-element.elementor-element-2ba17c9 img {<br />    height: auto!important;<br />}

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.

If this solution doesn't look relevant, 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.

This topic contains 31 replies, has 2 voices.

Last updated by Andreas W. 11 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
December 5, 2023 at 1:00 pm #14997487

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please fo the following.

1) Take a coy of your site or create a staging site.

2) Deactivate WPML and its addons.

3) Revise the content of your pages.

4) Add more text to an affected page segment.

You should see the same issue and this should clarify that this is not WPML related.

If for some reason this will not be the case, then please let me know.

Best regards
Andreas

December 5, 2023 at 1:11 pm #14997615

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I have a better idea - no need to create a site clone.

Duplicate your original content with a plugin like "Duplicate page" and set it as a draft.

Now add more tests to the section. You should see the same behavior even on the original content.

Also, please see the video that I created. WPML applies the same setting to this section in both languages which is expected. The section uses align-content with the setting "space evenly".

space-evenly
The items are evenly distributed within the alignment container along the cross axis. The spacing between each pair of adjacent items, the start edge and the first item, and the end edge and the last item, are all exactly the same.

Now, if there is a different amount of text on different content, the layout surely may vary.

Best regards
Andreas