Is it possible to apply different fonts for each language when using the multilingual support feature in WIX STUDIO?

Question:
Is it possible to apply different fonts for each language when using the multilingual support feature in WIX STUDIO?

Product:
WIX STUDIO

What are you trying to achieve:
apply different fonts for each language when using the multilingual support feature in WIX STUDIO

1 Like

any Wix Studio Experts could help us solve this question?

You will have to generate some coded functions, which will make your wish come true…

Can you give an example how the font family of text element can be changed? This API only handle detecting the site’s current language being used but not changing the font family.

Hello! Probably, it’s possible to apply different fonts for each language in Wix Studio by using a small script that detects the current language and applies specific fonts dynamically.

Here’s a workaround you can try:

Go to Site Settings → Custom Code and paste the following script into the <head> section (set it to load on all pages):

<script>
  document.addEventListener("DOMContentLoaded", function () {
    const lang = document.documentElement.lang; 
    const style = document.createElement("style");

    if (lang === "en") {
      style.innerHTML = `
        * {
          font-family: 'YourEnglishFontName', sans-serif !important;
        }
      `;
    } else if (lang === "ja") {
      style.innerHTML = `
        * {
          font-family: 'YourJapaneseFontName', sans-serif !important;
        }
      `;
    }
   
    document.head.appendChild(style);
  });
</script>

Replace 'YourEnglishFontName' and 'YourJapaneseFontName' with fonts you’ve uploaded or loaded via CSS (@import or link).