Skip Navigation

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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

Tagged: 

This topic contains 6 replies, has 1 voice.

Last updated by Marcel 6 days, 19 hours ago.

Assisted by: Marcel.

Author Posts
December 14, 2024 at 5:11 pm #16513760

rabeeK

Background of the issue:
I recently purchased WPML three days ago, and I find it to be an excellent tool. I am currently utilizing the Themerex theme for my WordPress website. I have begun the process of translating my website. Although the theme is originally in English, I have set the default language to Arabic, which necessitates that all content is displayed from right to left (RTL). With WPML, I intend to incorporate both Syriac and English languages. At present, I have successfully added the Syriac language ( RTL language same as Arabic), which is also expected to follow the right-to-left format, similar to Arabic

Symptoms:
upon translating my content, the direction has unexpectedly flipped, and it is now displaying from left to right (LTR). I navigated to my dashboard and accessed. I navigated to my dashboard and accessed Settings > General > site default language. it says "When WPML is activated, the site language should be changed in the WPML Site Languages section." I am uncertain about the steps to take in order to resolve this issue.

Questions:
How can I ensure that the Syriac language displays in RTL format?
What steps should I take in the WPML Site Languages section to resolve the language direction issue?

December 16, 2024 at 12:03 pm #16517077

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. First of all, sorry for the late reply; it was due to a higher workload.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

WPML doesn't create separate CSS files for each language. It just uses the theme files.

In order to fix the issue, you might need to create a custom CSS file for the Syriac language.

Also, please try the following steps:

1- Go to WPML-> Languages-> Edit Languages
2- Map the Syriac as the closest RTL language
3- Click Save
4- Clear your site's cache
5- Check the Syriac home page on the front end

Best regards,
Osama

December 16, 2024 at 6:33 pm #16518584

rabeeK

Good day Osama,

Thank you for your response. I have followed your instructions precisely; however, the issue persists.

The RTL direction is not enabled, this must be some sort of setting in WPML and page is translated but no RTL is enabled.

I would appreciate your assistance in resolving this issue at your earliest convenience.

Thank you

December 16, 2024 at 11:59 pm #16519209
rabeeK

Hi again,

Something else i want to add. WPML creates duplicates of the pages or posts that I translate, allowing me to modify each page in its respective independently without affecting the default. I have the capability to modify the content of the page(ex, homepage); however, I am unable to make changes or adjustments to the header. WPML did not duplicate my header. Each time I select "Edit header," I am redirected back to the Arabic version (Default language of the website). The header should also be duplicated, allowing for adjustments without affecting the others languages. but its not happening.

I am currently using the GraceChurch Theme from ThemeRex.

FYI, I have accessed WPML > Settings > > the "Post Types Translation" making sure "header" is there and its Translatable; however, I was unable to locate it.

Thanks

New threads created by Marcel and linked to this one are listed below:

https://wpml.org/forums/topic/i-am-unable-to-make-changes-or-adjustments-to-the-header/

home.jpg
December 17, 2024 at 4:29 am #16519671

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

The RTL direction is not enabled, this must be some sort of setting in WPML and page is translated but no RTL is enabled.

As my colleague Osama mentioned, this behavior is not controlled by WPML. The theme itself manages RTL support. I recommend reaching out to the theme authors to confirm if RTL is supported, as I couldn’t find any information regarding this on their website.

For reference, a theme needs to be specifically prepared for RTL languages as described here: Right-to-Left Language Support.

For your second question, I’ve created a separate ticket.

Best regards,
Marcel

December 17, 2024 at 4:52 am #16519700

rabeeK

Hello Marcel,

Thank you for your reply,

The theme is supporting with RTL languages. My primary website language is Arabic (RTL), and it functions perfectly( you can check the site by yourself). However, after added the Syriac language using WPML, which also utilizes an RTL direction, the text direction has unexpectedly reversed, resulting in a left-to-right (LTR) display. so the issue with WPML setting/configuration...

Thank you

December 17, 2024 at 5:13 am #16519712

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

Please compare the generated source code:

AR:
<!DOCTYPE html><html dir="rtl" lang="ar">

SYR:
<!DOCTYPE html><html lang="syr">

As you can see, the output does not include the dir="rtl" attribute. Did you map the custom language to the closest RTL language, as Osama described?

If so, could you please test this in an isolated staging environment with no other plugins active, using the following scenarios:

Create a new page using only your theme, without Elementor.
Create a new page with Elementor enabled.
Are you able to reproduce the issue in both cases? Creating a new page ensures that no specific templates are loaded where the default LTR direction might be enforced instead of RTL. It seems something is not correctly setting the RTL direction.

Best regards,
Marcel