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. 1 year ago.

Assisted by: Andreas W..

Author Posts
November 21, 2023 at 3:33 pm #14888679

ronaldT-5

See image below...

Screenshot 2023-11-21 at 10.32.40 AM.jpg
November 21, 2023 at 3:53 pm #14888803

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

I am sorry, but I do not see any gap in this image.

See screenshots.

What exactly are you expecting to see here?

Best regards
Andreas

no gap.png
no gap 2.png
November 21, 2023 at 3:55 pm #14888897

ronaldT-5

In either language, the text has extra spacing in between and as top/bottom margins.

I have also contacted Elementor, but I have not heard from them yet via tier 2 support.

November 21, 2023 at 10:32 pm #14891717

Andreas W.
Supporter

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.

.elementor-266 .elementor-element.elementor-element-89ce3d1.elementor-column.elementor-element[data-element_type="column"] > .elementor-column-wrap.elementor-element-populated > .elementor-widget-wrap {
    align-content: space-evenly;
    align-items: space-evenly;
}

The problem here appears to be that

align-items: space-evenly

is altered by another CSS rule that is overwriting it - could be something coming from the theme.

This "align-items" rule is responsible for the vertical alignment in a Flexbox.

Guide:
hidden link

I suggest you consult the Elementor Support about or even better the theme support about those issues, as this is not a WPML topic.

I hope for your understanding.

Best regards
Andreas

November 22, 2023 at 2:08 pm #14898865

ronaldT-5

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.

November 22, 2023 at 3:28 pm #14900277

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

Elementor works very well with WPML and even though you will find issues, we are always working forward to solve the in timely manner:

https://wpml.org/plugin/elementor/

How to translate Elementor:
https://wpml.org/documentation/plugins-compatibility/elementor/

About the issue on your site:

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.

Guide:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Best regards
Andreas

November 22, 2023 at 6:54 pm #14901987

ronaldT-5

Thanks for the references. I will keep it handy.

BTW, I am using custom CSS already. The code you suggested earlier.

Before, I was using Polylang, having to manually translate, and keep track of every changes on both sides. That's the reason I switched to WPML.

Anyhow, someone at Elementor is currently looking into my issue.

November 22, 2023 at 10:09 pm #14902741

Andreas W.
Supporter

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.

Best regards
Andreas

November 25, 2023 at 8:35 pm #14923253

ronaldT-5

To update you, Elementor were completely useless, replying with a canned and bogus answer.

November 25, 2023 at 8:37 pm #14923255

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

I am sorry to hear that.

Let me have a look at this again later today - maybe we can adjust the text layout with a different custom CSS rule.

I will contact you later tonight.

Best regards
Andreas

November 25, 2023 at 9:13 pm #14923311

ronaldT-5

Thanks!

November 25, 2023 at 11:15 pm #14923477

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

I recorded a video for you to explain the issue in detail and provide some suggestions:

hidden link

This is a download link, which will be available for 7 days. The download size is 640MB.

November 26, 2023 at 1:56 am #14923667

ronaldT-5

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.

November 28, 2023 at 10:18 am #14937591

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

I answered your last request already here:
https://wpml.org/forums/topic/design-changes-dont-affect-translated-pages-why/#post-14868697

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.

Best regards
Andreas

December 5, 2023 at 1:16 am #14992079

ronaldT-5

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