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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 1 year, 11 months ago.

Assisted by: Noman.

Author Posts
August 24, 2023 at 7:40 am #14282319

uzairG-2

I,m translating my site and i,m using elementor so is there any way of changing all the font-family in the translated language ?

August 24, 2023 at 2:18 pm #14286379

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. If the theme you are using on your site does not allow different theme options in different language setting, then it might not be possible, but it would be worth trying the following:

You can use ‘:lang’ selector with language code just before other CSS selectors to use different CSS for different languages. So in this case you may use this type of CSS in the custom CSS section of your theme to apply different fonts in Arabic language.

:lang(ar) body, :lang(ar) p, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4, 
:lang(ar) h5, :lang(ar) h6, :lang(ar) p, :lang(ar) a, :lang(ar) span, :lang(ar) strong {
    font-family: Arial !important;
}

You can change Arial to your required font.

Here is a doc for more details:
hidden link

Thank you

The topic ‘[Closed] Font Family Issue in Wpml’ is closed to new replies.