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 4 replies, has 2 voices.

Last updated by robertF-47 4 years, 5 months ago.

Assisted by: Riffaz.

Author Posts
September 7, 2020 at 2:37 am #6953349

robertF-47

Tell us what you are trying to do?

I'm using divi theme, but the default font of Chinese is mess.
I can change others manually.
But I can't find a place to change the menu font.
How can I do it?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

September 7, 2020 at 4:23 am #6953925

Riffaz

Hi,

Thank you for contacting WPML support.

Add this css code to WPML > Languages > Language Switcher Options > Custom CSS

html:lang(zh-hans) #top-menu .menu-item-has-children>a, html:lang(zh-hans) .et_header_style_left #et-top-navigation nav>ul>li>a {
        font-family: sans-serif !important;
}

Change the font name to the font you want.
This will change the font only for your Chinese menu.

Let me know if you need anything else regarding this.

Regards,
Riffaz.

September 7, 2020 at 5:08 am #6954099

robertF-47

Thank you, that works.
And how about the top bar manu?

September 7, 2020 at 6:05 am #6954391

Riffaz

Hi,

You are welcome.

For top bar use this css

html:lang(zh-hans) #et-secondary-menu>ul>li a {
   font-family: sans-serif !important;
}

Regards,