Home›Support›English Support›[Resolved] Arabic Translation Causing Issues With Elementor Elements Alignment
[Resolved] Arabic Translation Causing Issues With Elementor Elements Alignment
This thread is resolved. Here is a description of the problem and solution.
Problem:
After adding the Arabic language, some elements show incorrect alignment.
Solution:
The issue is related to RTL CSS used for Arabic, you can use the CSS :lang() selector to change the alignment or text direction for elements in a specific language. Please check here for more details: https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
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.
I am trying to: Correctly align elements after translating the site but It bugs every single time, I think because of the Arabic language overlapping or something.
Link to a page where the issue can be seen: radyinterior.ae/faq
I expected to see: Correctly Aligned Elements
Edit: I'd like to add that it has been causing issues with a lot of other elements as well, such as prefixes and suffixes on icon boxes in Arabic translated language.
This is not an issue with the translation, it happens due to the RTL CSS used for Arabic. This is handled by the theme as WPML doesn't add CSS for the translated elements. Please see here: hidden link
I suggest using the CSS :lang() selector to change the alignment or text direction for those elements in Arabic. Please check here for more details: hidden link
The problem is coming in english pages, not the arabic ones, and if the css:lang() is the fix, where should I put it? In the custom/additional css panel in elementor?
You can add the custom CSS to Appearance > Customize > Additional CSS. I think also Elementor's custom/additional CSS section should work if the page was built with Elementor.
Regarding the header issue in the FAQ page, could you please clear the browser cache or check on another browser?
I suggest this because I can't see any issues there, please check this recording: hidden link
The header issue only happens in the blogs if the transparency feature is turned on, if it is off, it is not bugging out, and the problem which I had for english faq pages is also happening for Arabic pages, such as Interior Design in Arabic and Interior Fit Out in Arabic
New threads created by Mohamed Sayed and linked to this one are listed below: