How to reset location of font awesome webfonts?

I have successfully setup a development version of my site on a different domain. During a scan with I noticed that that fontawesome webfonts were still trying to be pulled from the original domain (see below).

Where can I reset/adjust the call for those fonts to my new domain?

Thank you!


Hello @meoptometry,

Thanks for writing in! :slight_smile:

You need to enable CORS in the server of your new domain. Please add this in your .htaccess file located at the root directory of your site.

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

For more information, please check: Troubleshooting - Font Awesome.

Hope it helps.

I added that ABOVE the wordpress rules and it did not fix the issue.

My understanding of CORS is that it allows for resources outside of the domain to be accessed. I am not looking to access them font awesome files from the production site ( I would like them local to my test site.

Also, I do not have this code in the htaccess file on my production site.

Are there any other solutions?



You can try this third party plugin.

You can do a search( and replace(
to fix it.


Thanks Paul.

I would have thought that would have fixed the issue too, but unfortunately it did not change the results.

Is the call for the fonts a setting in the theme that I can change? I’m not sure why it would still be calling the local copy from the other site.



Hi there,

Our theme uses enqueue with relative URL to the local site, and that URL is always given by Wordpress. This only means that it’s a cache or Wordpress is giving the URL from internal cache or similar.

Would you mind providing the site’s URL that triggering this font issue?


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.