- This topic has 14 replies, 3 voices, and was last updated 7 years, 7 months ago by Ramesh Srinivasan.
-
AuthorPosts
-
August 30, 2016 at 10:24 am #222541Liana Ghazarian
HI
I set the navigation item font to Arial and basically all other fonts are set to Arial in Customize section.
I my navigation menu in Chrome I see squares next to menu items, in Safari I see nothing but when I enter the customize mode I see a symbol pointing down, in Firefox I see squares with some symbols inside. On the phone it is something else. How can I correct this?
Thank you
August 30, 2016 at 10:26 am #222544TomLead DeveloperLead DeveloperHi there,
This topic might help: https://generatepress.com/forums/topic/font-awesome-not-loading-correctly-on-alternate-domain/
August 30, 2016 at 10:41 am #222551Liana GhazarianIf I understood correctly…
I copied the following to htaccess file, but i still see different symbols. I emptied cache, but i still see them.# Allow access from all domains for webfonts.
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>August 30, 2016 at 11:35 am #222574Ramesh SrinivasanHi,
Also include Woff2 to the list if you’re loading it from CDN or alternate domain.
August 30, 2016 at 3:00 pm #222617TomLead DeveloperLead DeveloperGood point, Ramesh.
Try this:
# Allow access from all domains for webfonts. <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule>
August 31, 2016 at 1:22 am #222679Liana GhazarianNope, I am still seeing squares.
August 31, 2016 at 9:43 am #222785TomLead DeveloperLead DeveloperCan you link me to your site?
August 31, 2016 at 10:24 am #222808Liana GhazarianSorry forgot to give the address. It is kksenyak.am
August 31, 2016 at 10:58 am #222811Ramesh SrinivasanI’m wondering why Font Awesome fonts are trying to load from here?
http://fonts.googleapis.com/fonts/fontawesome-webfont.woff2
It’s supposed to be loaded from your site, or from one of the free Font Awesome CDNs.. but not from Google certainly.
Pls try disabling the minification Plugin you’re using, for testing purpose. It may be redirecting fonts incorrectly.
August 31, 2016 at 11:03 am #222814TomLead DeveloperLead DeveloperYea I’m not sure what’s going on there.
If you haven’t added any custom code, can you try #1 on this page?: https://generatepress.com/knowledgebase/debugging/
September 1, 2016 at 7:05 am #222997Liana GhazarianI am using W3 Total Cache to minify things. When i disables the plugin, this corrected the problem. No more symbols.
Should I just delete any entry with awesome fonts in my minify list?
September 1, 2016 at 9:39 am #223033TomLead DeveloperLead DeveloperWorth a shot 🙂
September 1, 2016 at 10:49 am #223049Ramesh SrinivasanWhat Tom said.
Unless you set the CDN URL to something like “http://fonts.googleapis.com/fonts”, it shouldn’t redirect your fonts there. Is CDN enabled in W3TC? You can add woff, woff2, ttf, eot to exclusion list.
September 1, 2016 at 1:34 pm #223093Liana GhazarianI added the exceptions and deleted any line with the word Font in minify commande. The squares disappeared.
Thank you.
September 1, 2016 at 8:57 pm #223154Ramesh SrinivasanExcellent. Thanks for the update.
-
AuthorPosts
- You must be logged in to reply to this topic.