Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
I am using a toggle widget for the FAQs page. In the Arabic language, the title is not RTL for Icon and Content.

Solution:
This could be an issue with the theme because it's responsible for handling the RTL CSS (Not WPML).

I suggest using the CSS :lang() Selector to add a different alignment for Arabic. 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.

This topic contains 2 replies, has 2 voices.

Last updated by mahmoudA-39 1 year, 10 months ago.

Assisted by: Mohamed Sayed.

Author Posts
June 12, 2023 at 9:43 am #13808267

mahmoudA-39

I am using toggle widget for the FAQs page. In Arabic view the title is not RTL . For Icon and Content. made the sittings in elementor for RTL and show as RTL.

The problem is with the Title!

I was using WPML translation Editor but later I changed to WP Editor since there are some design differences. In both case the Title RTL is not working.

Default FAQ page is English

hidden link

Regards

1.jpg
June 12, 2023 at 2:30 pm #13810643

Mohamed Sayed

Hi Mahmoud,
Thanks for contacting WPML support.

This could be an issue with your theme because it's responsible for handling the RTL CSS (Not WPML).

I suggest using the CSS :lang() Selector to add a different alignment for Arabic. Please check here for more details: hidden link

You can try something like the following:

.elementor-tab-title:lang(ar) {
    text-align: right;
}

Regards,
Mohamed

Screenshot 2023-06-12 172201.png