-
AuthorPosts
-
September 10, 2014 at 10:14 am #316391
hello guys. After while using your awesome theme, my site doesn’t recognizes your default icons anymore and shows instead some Chinese hieroglyphs. You can see that on my start page http://www.byggpartner.eu. Even if i go to wp-admin and open icon setting page, all of them are like Chinese hieroglyphs. Please help me to find a reason and reset it back again.Thanks
September 11, 2014 at 1:48 am #317077Hi!
Try adding this to your .htaccess file:
<FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
Regards,
Josue- This reply was modified 10 years, 3 months ago by Josue.
September 11, 2014 at 8:31 am #317196Hi Josue, i think it doesnt helps, nevertheless i made some syntax mistake :
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch># END WordPress
September 11, 2014 at 8:58 am #317204Hi!
Try putting it at the beginning.
Regards,
JosueSeptember 11, 2014 at 9:05 am #317208Just did. Page wasnt loaded at all:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
September 11, 2014 at 11:14 am #317276Hi!
Please reset the .htaccess file then refer to this link for a possible fix: http://www.fontsquirrel.com/blog/2010/11/troubleshooting-font-face-problems
It is better if you contact your host regarding this matter to avoid errors.
Regards,
IsmaelSeptember 11, 2014 at 1:20 pm #317353Hi, according to your link, it should be something with .htaccess file:
Fonts not showing in any browser
This sounds like you need to work on the plumbing. You either did not upload the fonts to the correct directory, or you did not link the fonts properly in the CSS. If you’ve confirmed that all this is correct and you still have a problem, take a look at your .htaccess file and see if requests are getting intercepted.
Not sure what can my host provider help in this case.
Anyway thank you guys, anyway i have to try to find a fix somehow.
September 11, 2014 at 7:43 pm #317606Hi!
I think i made a typo in first reply, try with this code instead:
<FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
Cheers!
JosueSeptember 12, 2014 at 12:14 am #317697HI Guys,
Fixed this for someone only just this morning – check out dev tools in chrome – look at the console – you will see:
"Font from origin 'http://www.byggpartner.eu' 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://byggpartner.eu' is therefore not allowed access.
FIX :-)
Log in to your wp admin dashboard and got to your ‘settings’
You will see a mismatch between the “wordpress address” and the “site address” – make sure they are both either “http://www” or “http://” – hit save – good as gold!
Best to go with your preferred domain settings in webmaster tools + go back and clean out the code in your htaccess file.
Cheers AL
September 12, 2014 at 1:47 am #317704Your help is appreciated @ChunkStudio.
Cheers,
JosueSeptember 13, 2014 at 7:37 am #318427Josue,
I just tried your code. At the beginning end at the end of existing htaccess file.
<FilesMatch “\.(ttf|otf|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>Sorry, no effect
September 13, 2014 at 7:48 am #318428Hi ChunkStudio and thank you for your help.
I just checked wp-admin settings, and there is no mismatch between the “wordpress address” and the “site address”. both of them starts “http://”. but i will try to follow your recomendation: “Best to go with your preferred domain settings in webmaster tools + go back and clean out the code in your htaccess file.”
will post later if i succeededSeptember 13, 2014 at 6:17 pm #318556Hi @xeminis,
Can you please create me a temporary FTP account? post it here as a private reply.
Regards,
JosueSeptember 14, 2014 at 7:14 am #318799Josue, i can give you my WP-admin and server directadmin logins if it would be helpful for you in order to help me :)
September 14, 2014 at 8:11 am #318808Hey!
We’d need to edit the .htaccess file and we require FTP for that, normally putting the following code does the trick:
<FilesMatch “\.(ttf|otf|woff)$”> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin “*” </IfModule> </FilesMatch>
Here’s the issue you are having:
Font from origin ‘http://www.byggpartner.eu’ 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://byggpartner.eu’ is therefore not allowed access.
Cheers!
JosueSeptember 14, 2014 at 6:50 pm #318898This reply has been marked as private.September 15, 2014 at 2:17 am #318944Hi!
It works but i’m just getting an empty directory (/) with nothing in it.
Regards,
JosueSeptember 15, 2014 at 2:54 am #318953OK – try this,
Log in to your wp admin dashboard and got to your ‘settings’
change the “site address” to http://www.byggpartner.eu
(note the ‘www’ bit :-)
hit ‘save changes’
September 15, 2014 at 6:12 am #319021This reply has been marked as private.September 15, 2014 at 6:30 am #319029Hey!
Check your site now, it’s fixed.
Best regards,
JosueSeptember 15, 2014 at 6:50 am #319037thank you very much!!!
Not only awesome template – the team too!
September 15, 2014 at 6:59 am #319039You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Icons doesnt recognized anymore’ is closed to new replies.