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.

This topic contains 1 reply, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 8 months ago.

Author Posts
August 16, 2023 at 9:05 pm #14241379

zeinaba-3

I would like to change all arabic font to be in ( cairo ) font for all of my website including main menu and footer and i don`t found any plugin doing that in the installation

August 17, 2023 at 5:00 am #14242029

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

In order to change the Arabic font to Cairo, you will need to do the following:

- Check with your theme author and ask where the font declaration are made, in most cases, this is done in the body, html, p, div, span

- Now using custom css add the font only for Arabic, hidden link

an example will be

body:lang(ar),
html:lang(ar),
p:lang(ar)
div:lang(ar), 
span:lang(ar),
a:lang(ar) {
font-family: 'cairo', sans-serif;
}

You can add this CSS in the child theme or in WPML->Languages->Language Switcher options->Additional CSS.

Let us know if this helps.

Thanks

The topic ‘[Closed] I would like to change all arabic font to be ( Cairo ) font’ is closed to new replies.