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 tools.pingdom.com I noticed that that fontawesome webfonts were still trying to be pulled from the original domain (see below).

http://www.meoptometry.com/wp-content/themes/x/framework/fonts/font_awesome/fontawesome-webfont.woff?v=4.6.3

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

Thank you!

MEO

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 (meoptometry.com). 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?

MEO

Hi,

You can try this third party plugin.

You can do a search(http://www.meoptometry.com) and replace(http://www.yourtestsiteurl.com)
to fix it.

Thanks

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.

Thanks,

MEO

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?

Thanks!

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