Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1124294

    Hi,

    I uploaded a custom font via the method here: https://kriesi.at/support/topic/how-to-add-google-font-noto-sans-tc-to-enfold-theme/

    1. Upload zip. via custom font upload in theme settings
    2. Create font folder in enfold child directory and upload font themes there again
    3. Create fonts.css and add the css provided by https://google-webfonts-helper.herokuapp.com/ for my font of choice.
    4. Add <link rel=”stylesheet” type=”text/css” href=”/fonts.css”> to the child theme header.php file

    However I get the error: GET https://www.gotonewzealand.co.nz/fonts.css net::ERR_ABORTED 404
    in the chromedev tool.

    I have added a login below.

    • This topic was modified 5 years, 4 months ago by SilviaNT.
    #1124329

    Hi SilviaNT

    Please try my method described here.
    I saw you only did part of it, but if you complete it from the beginning to the end, it should work with your custom font.

    And careful, the fonts folder does not go into your child theme folder. It goes into your root folder (your main directory) as I tried to describe here:

    I always create a new folder called fonts in my root directory and upload the font files there.

    Cheers
    Michael

    #1124338

    Hi Michael,

    Thanks for your help.

    I had the folder in the theme folder. I have moved it to the main directory now.

    I’m a bit confused regarding the font.css, does this also go into the main directory and should it be in the fonts folder or separate?

    #1124357

    Hi SilviaNT

    Exactly, the file fonts.css goes into your main directory as well.
    I guess it works properly now without any issues, correct?

    Best,
    Michael

    #1124359

    Hi Michael,

    Yes it works now. Thank you for your help.

    Silvia

    #1124385

    Hi Silvia,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.