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!
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.