Home › Forums › Jevelin Theme › Icon Font & CORS issue
Home › Forums › Jevelin Theme › Icon Font & CORS issue
Font on my site are not rendering. I do see this error in console when I inspect the page:
“Access to Font at ‘http……/wordpress/wp-content/themes/jevelin/fonts/Simple-Line-Icons.ttf?v=2.2.2’ from origin ‘http://www.drvigo.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.drvigo.com’ is therefore not allowed access.”
There’s 7 similar errors in the console related to: themify.woff, simple-line-icons-woff, themify.tff, etc all icon related resources.
Using the most recent version of the theme, and the WP-Core. I’ve also added the below to .htaccess
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
Thoughts?
Yep, figured it out.
Awesome great to see you got that figured out.
Please advise if you have more questions.
Have a fantastic day!