This thread is resolved. Here is a description of the problem and solution.
Problem:
You are developing a site and want to use a different font for the Arabic-translated pages using WPML, without having to change the font for each text manually.
Solution:
We recommend using custom CSS to specify different fonts for each language. Here is an example of how you can set a specific font for all Arabic content:
html[lang="ar"] {font-family: "Cyrillic Barlow Condensed Reg" !important; font-size: 20px !important; font-weight: 600 !important;}
To target all paragraphs in Arabic, you can use:
html[lang="ar"] p{ font-family: "Hoverla Font ENG" !important; font-size: 24px !important;}
If you need to apply this to more HTML tags, such as paragraphs, links, and headers, you can extend the CSS like this:
html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] h1{ font-family: "Hoverla Font ENG" !important; font-size: 24px !important;}
Please note that custom CSS is beyond our Technical Support guidelines, but these examples should guide you in the right direction.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
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 11 months ago.
Assisted by: Mihai Apetrei.