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.
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
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?
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
Hi Michael,
Yes it works now. Thank you for your help.
Silvia
Hi Silvia,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria