This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to change the font for their site when translated from English to Arabic using the Divi theme. They attempted to apply custom CSS to set the font-family for the Arabic language but it did not work. Additionally, they encountered issues translating large portions of the site, particularly in widgets from plugins.
Solution:
We recommended adding custom CSS code to change the font for a specific language. Here is an example of the code that should be added to the Appearance > Customizer > Custom CSS area:
html[lang="he-IL"] {font-family: Alef !important; font-size: 24px !Important;}
The client should replace "he-IL" with the correct language code for Arabic and "Alef" with the desired font family name. We also discovered that the issue might be related to Divi Caching, which has a font set for the Arabic language that could be overriding the custom CSS. We suggested clearing the Divi cache and checking the Divi options for font settings that might be set per language. If the client was not the one who built the site, we advised consulting with the person who did for more information on how the fonts were set up.
For the issue of translating large portions of the site, we asked the client to open a new ticket, as per our Support Policy, which states that we handle only one issue per ticket.
If this solution does not seem relevant, please open a new support ticket with us.
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 6 replies, has 2 voices.
Last updated by 1 year, 3 months ago.
Assisted by: Mihai Apetrei.