Icons not show up for localhost but not my virtualhost

I can’t figure out why my icons are showing up in my localhost but not my virtual host.

The search glass in the menu shows a square
<i class="x-icon-search" data-x-icon-s="" aria-hidden="true"></i>
and custom bullets like x-icon-check
<i class="x-icon-check" aria-hidden="true" data-x-icon-s=""></i>

they show up fine when I go to localhost/mysite

but when I go to the virtual host I have set up
dev.mysite.com

I get squares like in the code above. This happens with the hamburger menus as well in mobile.

Any ideas?

Hi There,

Thanks for writing in!

Can you please check if the font awesome font files are loading in your virtual host setup?

You can check it in your browser console.

It would show you the error message if the font file is not loaded. As we don’t have access to your setup can’t confirm the exact issue.

Thanks

It seems they are not… is this just due to the CORS policy in Chrome? Here are the errors:

It seems that I am having the same problem with a youtube video as well?

I can tell you that I started the server as dev.apsoftwaresolutions.com and realized I made a mispelling the client would not appreciate so I removed that virtual host and just setup another as dev.apsoftwareservices.com.

Would this cause the errors? Also, will this cause errors when I transfer the site from the development environment over to the live server?

Please advise, thank you in advance!

Thank you, but I figured it out. It was a wampserver setup issue and (it was a CORS issue as you suggested) I found a very simple, quick and easy 1-2-3 solution after I figured out what I was searching for in this article: https://medium.com/@tanviranik/how-to-resolve-the-error-in-wampserver-no-access-control-allow-origin-header-is-present-on-the-486705cb1659

It didn’t seem to work at first after I applied this fix, but after restarting the server and then clearing my browser cache with ctrl-f5, all Icons are now appearing. I hope that you leave this up to help someone else!!

Thanks again!!

Hey There,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

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