Skip Navigation

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

Problem:
You are trying to change the main font family to 'TAJAWAL' for Arabic text only on your website, but the default theme font is being applied instead.
Solution:
To apply the 'TAJAWAL' font to Arabic text only, you can use custom CSS. Here is an example of how you can specify the font for Arabic content:

body:lang(ar) {<br />    font-family: 'TAJAWAL', sans-serif;<br />}

This CSS rule targets the body element only when the content language is Arabic (specified by :lang(ar)) and applies the 'TAJAWAL' font. Ensure you add this CSS to your theme or via a custom CSS plugin.

If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML 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.

This topic contains 1 replies, has 0 voices.

Last updated by emirates-literatureF 1 week ago.

Assisted by: Paola Mendiburu.

Author Posts
June 18, 2025 at 9:49 am #17145450

emirates-literatureF

Background of the issue:
I am trying to change the main font family of the theme only in Arabic on my website. The page where the issue can be seen is hidden link.

Symptoms:
I expected the font 'TAJAWAL' to apply to all Arabic text, but instead, I got the default font theme.

Questions:
How can I change the main font family to 'TAJAWAL' for Arabic text only?
Why is the default font theme being applied instead of 'TAJAWAL'?

June 18, 2025 at 2:21 pm #17147060

Paola Mendiburu
WPML Supporter since 11/2020

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

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

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**
- Please make a backup of the site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.
The private box looks like this: hidden link

June 23, 2025 at 4:52 am #17157926

emirates-literatureF

it was an elementor issue and their support fix it but when i saw its an arabic language, i mean not the default theme language i thought it was a WPML thing but i was mistaken, sorry for the inconvenience.