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.
Tagged: Not WPML issue
This topic contains 3 replies, has 1 voice.
Last updated by Itamar 1 week, 3 days ago.
Assisted by: Itamar.
Author | Posts |
---|---|
August 5, 2025 at 1:48 pm #17296801 | |
Todd |
Background of the issue: Symptoms: Questions: |
August 6, 2025 at 11:03 am #17299197 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, Thanks for contacting us. While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly. We recommend using CSS code to apply different fonts for each translation. Here is an example of how to do it: html[lang="ar"] {font-family: "Cyrillic Barlow Condensed Reg" !important; font-size: 20px !important; font-weight: 600 !important;} This code is just an example and depending on the design of your site, you will need to apply CSS code and adjust the values for language code and font you wish to use. For example, if you want to target all paragraphs on the site, you would include the tag as follows: html[lang="ar"] p{font-family: "Hoverla Font ENG" !important; font-size: 24px !important;} The code needs to be added in the Appearance > Customizer > Custom CSS area. Please note that custom CSS is outside the scope of our Support guidelines, but we still wanted to share with you some examples that you can follow. Regards, |
August 8, 2025 at 10:07 am #17305016 | |
Todd |
Hi Drazen Thanks for your continued support. This is a good start, but don't we have to first call the font from Google's server? Only after it's called into the site can we then assign it as a css declaration, no? Thanks, |
August 10, 2025 at 2:02 pm #17307681 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Todd. The answer to your questions is yes. Regards, |