This topic contains 4 replies, has 2 voices, and was last updated by  eladbarz 1 year, 8 months ago.

Hebrew Fonts

  • Hi,

    I would like to use special Hebrew fonts on my site.
    I have the font files on .otf
    How can I add them to the theme?

    Thanks

    Hello there,

    Thank you for asking.

    My apologize for late replying; I was not here during weekend.

    1. Install and activate Toranj child theme (toranj-child.zip)
    2. Open Toranj child folder, then create a new folder “font-face” where your custom font files will be stored in. So, you should have toranj-child/font-face
    3. Open toranj-child/style.css file
    4. Add the following CSS code

    @font-face {
      font-family: "MyWebFont";
      src: url("font-face/my_webfont.otf") format("opentype");
    }
    
    body{
      font-family: "MyWebFont", sans-serif;
    }
    

    You should need to adjust the font name (“MyWebFont”) and the file name (my_webfont.otf) into yours

    5. Save changes, then upload it through FTP or cPanel

    Let me know how it goes. I’ll wait to hear back from you regarding your stats.

    Regards,
    Kharis

    Hi Kharis,

    Sorry for my late reply.
    I have done this, but it doesn’t seem to be working at all… the fonts did not change. I checked it thoroughly, used the correct file names and directories but no affect…

    Hello there,

    Thank you for reporting. Does it happen on all devices?

    Could you please try to open .htaccess file which resides in root directory then add the following code?

    AddDefaultCharset UTF-8
    

    If it didn’t help, please post your URL here so I can have a look.

    Regards,
    Kharis

    Hi,

    Seems like it still doesn’t work.
    The site is http://www.3dmi.co.il/new/

The topic ‘Hebrew Fonts’ is closed to new replies.