Troubleshooting: My icons are replaced with a square
My icons disappeared and are replaced with a square or a Chinese sign.
Most likely, the icons are not loaded because of a server restriction. If the server security settings allow you to overwrite the initial values, to fix this issue, try one of the following suggestions:
Please note that is very likely after making changes on htaccess file the website will get 500 error because almost all hostings overwrite such settings. In this case, you need to remove the code added in order to have the WordPress running again and follow the step #4.
- Add to the .htaccess file the string Access-Control-Allow-Origin "*"
Is still have troubles, add to the .htaccess file the following code:
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"<br>
The font icons are still not rendered? Replace the above codes with the following code:
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule><br><br>
- If no method fixes the problem, kindly ask your hosting to allow the loading of self-hosted fonts on your servers.