Problem with FONT AWESOME

Responsive community-minded music Joomla template with JomSocial extension support.
Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Wed Mar 18, 2015 2:47 pm
Reply with quote
Report this post
Hi, I have a little problem with FONT AWESOME icons and arrow on frot page, sometimes they are showing as only squares...
I don't know why.

http://dante.kos.pl/gniazda - on Montaż - bottom 2 section

or
on frontpage - arrows for scrolling
User avatar
Expert Boarder

GK User
Thu Mar 19, 2015 8:48 am
Reply with quote
Report this post
The issue is somewhere in Joomla configuration... See this error:
Code: Select all
Font from origin 'http://www.dante.kos.pl' 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://dante.kos.pl' is therefore not allowed access.

The problem is in a difference between:
http://dante.kos.pl/
and
http://www.dante.kos.pl/
You use first one to access site, but the second one is used to load css files. Browser blocks if you are trying to load fonts from different domain or subdomain (www. in that case).
The solution is to either reconfigure Joomla to load static css files from same domain as the site itself, or to setup crossdomain headers on css and font files (this is quite complicated and requires server side configuration).
User avatar
Moderator

GK User
Fri Mar 20, 2015 9:13 am
Reply with quote
Report this post
Thank You, I did rewrite in .htaccess and it works :)
User avatar
Expert Boarder

GK User
Fri Mar 20, 2015 12:34 pm
Reply with quote
Report this post
Oh. Nice idea. Thanks for sharing.
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Sat Mar 21, 2015 7:41 pm
Reply with quote
Report this post
no, thanks again. problem is solved.
User avatar
Expert Boarder

GK User
Sun Mar 22, 2015 10:20 am
Reply with quote
Report this post
You might also find this article interesting:
http://davidwalsh.name/cdn-fonts
User avatar
Moderator

GK User
Mon Mar 23, 2015 6:20 pm
Reply with quote
Report this post
yes, thx :)
User avatar
Expert Boarder

GK User
Tue Mar 24, 2015 8:04 pm
Reply with quote
Report this post
Please let me know if you would have any additional questions regarding this topic.
User avatar
Moderator

GK User
Thu Jan 12, 2017 5:39 pm
Reply with quote
Report this post
Fix work for me too! :D

I had problems with Font Awesome not loading some times. In Hikashop cart it was sometime showing "Loading..." in my StoreFront template.

Adding this to my .htaccess solved the problem. Thanks!
Code: Select all
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.