Tagged: x
-
AuthorPosts
-
August 10, 2016 at 5:24 am #1125321
fderooyParticipantHi there!
I’m using a custom font in my website called SideWalk Cafe BF, which I managed to install following the instructions in this article.
Somehow, the font is displaying perfectly in Safari (you can see it in the red and black tags before some article title, as well as in the site logo), but not at all in Chrome. Any ideas of why this is happening?
Thanks so much in advance for your support!
Cheers.
August 10, 2016 at 8:49 am #1125511
ChristianModeratorHey there,
There’s an issue with Cross-Site Origin Policy
Font from origin 'http://sociologialatinoamericana2.ucr.ac.cr' 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://www.sociologialatinoamericana2.ucr.ac.cr' is therefore not allowed access.Please contact your web hosting provider to fix.
Thanks.
August 10, 2016 at 12:35 pm #1125920
fderooyParticipantHi!
Thanks so much for the quick response. I’ll contact my hosting provider then. But just to clarify: do you have any idea what that means? Specifically “No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.sociologialatinoamericana2.ucr.ac.cr’ is therefore not allowed access”. Is it a license issue with the font or something like that?
Thanks again!
Cheers.
August 10, 2016 at 2:39 pm #1126077
JoaoModeratorHi There,
Your host provider will no, but pretty much you are not allowed to load resources from other sources but your website.
Hope that make sense,
Joao
August 10, 2016 at 4:03 pm #1126183
fderooyParticipantHey Joao, thanks a lot for the clarification! Although, my doubt remains sinxece the font that won’t show up in Chrome and Firefox is custommly installed and uploaded inside our own server, in a sub-directory called “fonts” under wp-content. So, in theory, the site should not be requesting anything to load from other sources, right?
Thanks, cheers.
August 10, 2016 at 11:36 pm #1126727
RupokMemberHi there,
To know more about CORS, you can follow this – http://enable-cors.org/
Here is a guide to fix this – https://community.theme.co/kb/solutions-to-potential-setup-issues-font-awesome/
Cheers!
August 11, 2016 at 12:09 pm #1127450
fderooyParticipantHi Rupok!
Thanks very much again for the help! I’m getting a Server Internal Error when I add the code provided in the guide you linked to my .htaccess file via FTP. The whole site stops working. What could that be?
I’m attaching a screenshot so you know what I’m seeing.
Thanks again,
Cheers.
August 11, 2016 at 4:21 pm #1127734
FriechModeratorHi There,
Maybe your host does not allow this configuration, please contact your hosting if the issue has something to do with server configuration as they are the one who has control over it.
Though, I think the issue is on your @font-face declaration. Your actual site address is
http://www.sociologialatinoamericana2.ucr.ac.cr/but you try to load the font on this directoryhttp://sociologialatinoamericana2.ucr.ac.cr/wp-content/fonts/The http://sociologialatinoamericana2.ucr.ac.cr (no www) is not consider your domain, that is why you’re getting the cross-origin issue. Please check your @font-face declaration and correct it.
Hope it helps, Cheers!
August 11, 2016 at 6:50 pm #1127896
fderooyParticipantOnce again guys: AMAZING! This resolved the issue with the font in Chrome! Thanks so, so much for the help!
This is why I’m so trilled to be a X Theme user!
Cheers. 🙂
August 11, 2016 at 6:57 pm #1127903
Prasant RaiModeratorGlad to hear that, feel free to get in touch with us regarding any further queries about the X Theme and Cornerstone.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1125321 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
