Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

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

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Paola Mendiburu 1 day, 2 hours ago.

Assisted by: Paola Mendiburu.

Author Posts
July 17, 2025 at 3:58 pm #17247106

rabeeK

Background of the issue:
I am trying to add the Syriac language to my website, which should display in RTL direction like Arabic. I accessed WPML > Languages > Site Languages > Edit Languages > Languages Mapping, and the settings appear correct.

Symptoms:
The Syriac language is displaying in the wrong direction (LTR) instead of the expected RTL.

Questions:
Why is the Syriac language displaying in LTR instead of RTL?
How can I fix the direction issue for the Syriac language?

July 18, 2025 at 9:41 am #17249365

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello,
Thank you for contacting us

I kindly ask you to share the access credentials to your site in your next message, which I have set private. This will allow me to reproduce the issue and double-check the configuration.

Please confirm you have created a full site backup that you can restore if necessary.

Regards,
Carlos

July 21, 2025 at 12:23 am #17253464

rabeeK

Hello Carols,

Thank you so much for your reply. i am sorry for late response. i was not aware that you have already replied to my request.

Would you mind if you guide me first before i share with you the access to my website?

Thank you 🙂

July 21, 2025 at 10:05 am #17254715

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there 🙂

My goal is to check if the Syriac language is set to be RTL in WPML -> String Translation.

I have set your next message private again so you can share the access credentials securely.

July 25, 2025 at 3:44 pm #17271749

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hi there!

This is Paola and I will continue with the ticket as Carlos is on holidays.

To apply rtl direction to that language you can add this css:

html[lang="sy-s"] body {
    direction: rtl;
}

Please let me know if you have any problems.

July 25, 2025 at 5:32 pm #17271903

rabeeK

Hello Paola,

I appreciate your reply 🙂

I have applied the the code into the website. it helps that the contents switched to the right direction. However, the header menu remains disorganized. The menu direction still displays LTR, and the arrow appears distorted. I have included a screenshot for your reference. you can visit the site to verify the issue.

Thank you

Screenshot 2025-07-25 133034.jpg
July 28, 2025 at 10:02 am #17274484

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hi there!

As it is a custom language the problem is that it is not added dir="rtl" to the html tag as you can see for the arabic language.

You will need to add it manually, you can add it with this custom function:

add_filter( 'get_site_option_WPML_custom_languages', function( $custom_languages ) {
    if ( isset( $custom_languages['xx'] ) ) {
        $custom_languages['xx']['is_rtl'] = 1;
    }
    return $custom_languages;
});

Where it says xx change it to the code of your language.