Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution

Custom fonts not loading in Wordpress

I am launching a new Wordpress website that uses some fonts and they are not loading.


The URL of the new site is here:


In the Console, I see an error: 

Access to font at '' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


I've tried adding a line to functions.php 

header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods: GET, OPTIONS");


Also added a line to htaccess in the root and in the /2019 folder but the same errors continue to show.

Access-Control-Allow-Origin ""


How can this be fixed?


Thank you.


Super User III
Super User III

Re: Custom fonts not loading in Wordpress



When I attempt to load your site I get a 500 error. You may want to turn on WP Debugging to get a clearer picture of what's happening.

I am a GoDaddy End User - Just Like You
* Please note that I offer free advice on this forum. I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

Once your issue is resolved,
please be sure to come back and click accept for the solution

Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community