Title: linherest's Replies | WordPress.org

---

# linherest

  [  ](https://wordpress.org/support/users/linherest/)

 *   [Profile](https://wordpress.org/support/users/linherest/)
 *   [Topics Started](https://wordpress.org/support/users/linherest/topics/)
 *   [Replies Created](https://wordpress.org/support/users/linherest/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/linherest/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/linherest/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/linherest/engagements/)
 *   [Favorites](https://wordpress.org/support/users/linherest/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Translate Multilingual sites - TranslatePress] add two fonts for each languages](https://wordpress.org/support/topic/add-two-fonts-for-each-languages-2/)
 *  [linherest](https://wordpress.org/support/users/linherest/)
 * (@linherest)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/add-two-fonts-for-each-languages-2/#post-13244184)
 * I have a solution for this problem.
    You can use it with every themes or multi-
   language plugins.
 * The first, you have to create 2 .css files.
    Each file has configuration for 
   a language. For example: **en.css**
 *     ```
       @import url('https://fonts.googleapis.com/css?family=Padauk&display=swap');
   
       body {
         font-family: Padauk;
       }
       ```
   
 * **ar.css**
 *     ```
       @import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');
   
       body {
         font-family: 'Cairo', sans-serif;
       }
       ```
   
 * The second, you add the code below in <head> tag of header.php
 *     ```
       <?php if (get_locale() == 'en_GB') : ?>
   
       <link rel='stylesheet' href='/wp-content/themes/my-theme/layout/css/en.css' type='text/css' media='all' />
   
       <?php else : ?>
   
       <link rel='stylesheet' href='/wp-content/themes/my-theme/layout/css/ar.css' type='text/css' media='all' />
       ```
   
    -  This reply was modified 5 years, 9 months ago by [linherest](https://wordpress.org/support/users/linherest/).
      Reason: Format post
    -  This reply was modified 5 years, 9 months ago by [linherest](https://wordpress.org/support/users/linherest/).
      Reason: Format post

Viewing 1 replies (of 1 total)