Missing icon
-
Hi Alex,
I am running web page OutdoorYeti.com with Polylang plugin (Version 1.7.10) and have Hueman Theme installed (Version: 2.2.3).
In english version I have everything correct but in Slovak version I miss icon for recent post, popular post, tags, recent commets in Alx widget.
For video post, I do miss Icon of video. In Firefox there is some small text displayed instead. In IE, there is nothing displayed.
Can you pls have a look and let me know what is wrong?
Thanks a lot,
Mike
-
Hi Mike. Welcome to the Hueman forum. The problem is due to a Cross-Origin Resource Sharing restriction. Here is one of the errors:
Font from origin ‘http://outdooryeti.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://sk.outdooryeti.com’ is therefore not allowed access.
Your page is being served from ‘http://sk.outdooryeti.com’ but the font is being loaded from ‘http://outdooryeti.com’.
Here are a couple of Polylang support topics related to that issue:
https://wordpress.org/support/topic/wrong-urls-on-translated-domains?replies=6
https://wordpress.org/support/topic/polylang-ruining-font-in-second-language?replies=2Here is a block of code you could add to your .htaccess file:
<IfModule mod_headers.c> <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule>Here is another post discussing the .htaccess modification:
http://www.webcodegeeks.com/web-servers/cors-and-how-to-enable-it-in-apache-web-server/You could also copy header.php to a child theme and modify it:
http://bowdenweb.com/wp/2011/05/how-to-enable-cors-in-wordpress.htmlOr you might just try a plugin:
https://wordpress.org/plugins/wp-cors/Hi bdbrown,
thanks for answer. However the .htaccess solution didnt work for me. At least I got an idea what should I google.
I guess there is a plenty of solution, I just needed to find the correct one.
Thanks for help,
MikeHi bdbrown,
actually your code is working
<IfModule mod_headers.c> <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule>I just had some issue with my browser but friens confirmed it is working. So thanks for help,
Mike
The topic ‘Missing icon’ is closed to new replies.
