This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed to change the font style for the translated language and could not find an option to do so.
Solution:
We recommended using CSS code to apply different fonts for each translation. Here is an example of how to target the Arabic language:
html[lang="ar"] {font-family: "Cyrillic Barlow Condensed Reg" !important; font-size: 20px !important; font-weight: 600 !important;}
To target all paragraphs in the Arabic translation, the client should add the
<p>
tag:
html[lang="ar"] p{font-family: "Hoverla Font ENG" !important; font-size: 24px !important;}
For targeting more HTML tags, such as paragraphs, links, and headers, the following code can be used:
html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] h1{font-family: "Hoverla Font ENG" !important; font-size: 24px !important;}
We also informed the client that custom CSS is beyond our Technical Support guidelines, but we provided these examples as a courtesy.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If so, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
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 is split from https://wpml.org/forums/forum/english-support/
This topic contains 1 reply, has 2 voices.
Last updated by 9 months, 2 weeks ago.
Assisted by: Mihai Apetrei.