I'm facing a big issue with the icons on the website. If I'm logged into WordPress, one can see the icons on the website. But if I'm not logged-in, one cannot see the icons at all. They are all displayed as blank rectangles. Look at the attached images.
There are no extra plugin activated on the website. Only the theme's plugins are activated.
Please resolve this issue at the earliest possible as I have to deliver this website immediately.
I checked your site and I found that the fonts are not able to load. Here are the errors in the web console:
There are two reasons, why the fonts don't load:
1. First reason is that your server security policy is set to block resources from different domains. (CORS policy) 2. There are multiple addresses to access your site.
Now this doesn't really have anything to do with the Recycle theme, or even WordPress CMS, but with server settings. But let me try to explain anyway what is happening and offer you a solution.
Currently your website can be accessed by 4 different URLs:
Each of those addresses is considered as a different domain name. But the fonts are only allowed to load from one of them. Out of all those 4 options, only this one really works as it should: http://mohitsehdev.com/
You can resolve the issue by editing the .htaccess file.
The CORS policy can be changed like this:
<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</ifModule>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mohitsehdev.com [NC]
RewriteRule ^(.*)$ http://mohitsehdev.com/$1 [L,R=301]
If you don't know how to edit .htaccess file, then you can ask your hosting provider for assistance. You can forward them this reply and they will know exactly how to handle the issue.
Thanks for the prompt response and explanation. The actual domain name where this website will be hosted is going to be different than the one it is hosted on right now. If the problem persists after I have hosted the website on that domain name, I will bother you again to find a resolution. If the solution offered by you works on that domain name, it would be great!
Hi Andrej,
I'm facing a big issue with the icons on the website. If I'm logged into WordPress, one can see the icons on the website. But if I'm not logged-in, one cannot see the icons at all. They are all displayed as blank rectangles. Look at the attached images.
There are no extra plugin activated on the website. Only the theme's plugins are activated.
Please resolve this issue at the earliest possible as I have to deliver this website immediately.
With best regards
Hi,
I checked your site and I found that the fonts are not able to load. Here are the errors in the web console:
There are two reasons, why the fonts don't load:
1. First reason is that your server security policy is set to block resources from different domains. (CORS policy)
2. There are multiple addresses to access your site.
Now this doesn't really have anything to do with the Recycle theme, or even WordPress CMS, but with server settings. But let me try to explain anyway what is happening and offer you a solution.
Currently your website can be accessed by 4 different URLs:
Each of those addresses is considered as a different domain name. But the fonts are only allowed to load from one of them. Out of all those 4 options, only this one really works as it should: http://mohitsehdev.com/
You can resolve the issue by editing the .htaccess file.
The CORS policy can be changed like this:
I would also advice to add redirects to the exact domain name you want to use. For example, if you want to use the http://mohitsehdev.com you can auto redirect all request from http://www.mohitsehdev.com to http://mohitsehdev.com
It can be done like this:
If you don't know how to edit .htaccess file, then you can ask your hosting provider for assistance. You can forward them this reply and they will know exactly how to handle the issue.
I hope this helps,
Andrej
OrionThemes
Hi Andrej,
Thanks for the prompt response and explanation. The actual domain name where this website will be hosted is going to be different than the one it is hosted on right now. If the problem persists after I have hosted the website on that domain name, I will bother you again to find a resolution. If the solution offered by you works on that domain name, it would be great!
With best regards
Sure. It should work on any domain.
Andrej
OrionThemes