This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to add the
dir="rtl"
attribute to pages translated into Dari on their website. While pages in Arabic correctly have this attribute, the Dari pages do not.
Solution:
First, ensure that Dari is recognized as an RTL language in your WordPress setup. Since Dari is not a built-in language in WPML or WordPress, you need to manually configure it. You can map Dari to Arabic in WPML to inherit the RTL attributes. This can be done under WPML -> Languages -> Site Languages -> Edit languages. For more details, visit Editing WPML's Languages Table.
Additionally, check your theme's compatibility with RTL languages and ensure it supports RTL styling. For guidance on building RTL WordPress themes, refer to Building RTL WordPress Themes and the WordPress Codex at Right-to-Left Language Support.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.
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.