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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 9 months ago.

Assisted by: Mihai Apetrei.

Author Posts
September 16, 2023 at 4:29 pm #14406937

mohamad-najeeba

i need to make font family in Arabic than in English version

September 16, 2023 at 6:40 pm #14407057

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

From my understanding, you will want to use a different font for the Arabic version of the site.

You will need some CSS code to do that.

Example:


html[lang="he-IL"] {
 
font-family: Alef !important;
font-size: 24px !Important;
 
}

The code needs to be added in the Appearance > Customizer > Custom CSS area.

Depending on the language that you will use, you will have to change "he-IL" to the proper language lang code. In your case, you will use "ar".

Depending on the font that you will use, you will have to change "Alef" to the font's family name.

Kind regards,
Mihai Apetrei

September 16, 2023 at 6:59 pm #14407071

mohamad-najeeba

i did this many times but not happening

I thing something is overriding something another

September 19, 2023 at 9:55 am #14418433

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and welcome back.

The issue here might be similar to the one in this other recent ticket that I had:
https://wpml.org/forums/topic/how-to-make-different-font-for-two-languages/

There's a chance that the currently active theme or (at least one) of the active plugins is overwriting what you are adding in the custom CSS area.

But the help that we can offer for this kind of issue is limited as it involves custom work and we can only guide people into the correct procedure.

Mihai