- This topic has 59 replies, 4 voices, and was last updated 5 years, 9 months ago by
David.
-
AuthorPosts
-
May 22, 2019 at 8:31 am #908000
David
StaffCustomer SupportIts the GP icon font – there isn’t a fallback font for it. But a user did post his fix for that particular warning here:
https://generatepress.com/forums/topic/adding-font-display-to-css/#post-906253
If you wait for the next theme update, 2.3 which is coming very soon it will allow you select SVG icons instead of the font, so this warning wont appear at all.
May 22, 2019 at 10:14 am #908099Oisin
Excellent stuff,
It’s great that you guys are working on a fix for this already. Do you think the new release will be a matter of days or weeks? If it’s soon, I won’t pursue the other fix.
Cheers,
Johnny.
May 22, 2019 at 10:36 am #908117Leo
StaffCustomer SupportThe Alpha should be out in a few days.
The official version depends on how Alpha goes 🙂
May 22, 2019 at 11:01 am #908138Oisin
Nice, you guys work fast.
I’m one item off scoring an A (100%) in YSLow and thought you might know the answer. YSlow is telling me to add Expires header to https://fonts.googleapis.com/css?family=Open+Sans:regular,600,700%7CMontserrat:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,90…
What do I need to do to remove this error? O know I can’t add an expires header because it’s an external resource.
Is there another technique?
May 22, 2019 at 3:09 pm #908269Tom
Lead DeveloperLead DeveloperYou would likely need to locally host the font files: https://docs.generatepress.com/article/adding-local-fonts/
May 23, 2019 at 1:52 am #908518Oisin
Cheers Tom,
I’ll do that today. Thanks for the advice.
May 23, 2019 at 7:05 am #908848Tom
Lead DeveloperLead DeveloperNo problem 🙂
May 26, 2019 at 5:40 am #911095Oisin
Hi Guys,
I set up a cookie free domain to satisfy the page speed audits. Since I did it, I notice that my burger symbol, twitter logo, and Facebook logo are all missing on mobile. On desktop I’m missing the small symbol on the “scroll back to the top” box.
I also just added Montserrat to my local fonts, thanks for putting together that handy guide. For some reason all my headings display New Times Roman when I choose Montserrat from system fonts. And when I hit publish and recheck, Montserrat Google Fonts is selected instead of Montserrat system fonts.
I’ve since changed everything to Helvetica from system fonts because New Times looks terrible. I’ll leave the error persist on H2. You can see it on my banner – https://www.loadlabz.com/
Any suggestions much appreciated.
Best regards,
Johnny.
May 26, 2019 at 9:29 am #911361Tom
Lead DeveloperLead DeveloperThat’s happening because those icons are fonts, and browsers typically won’t display fonts if they’re supplied by a different URL than the one you’re viewing. In your case, we’re viewing your website URL, but the resources are coming from static.loadlabz.com. If you right click your page and click “Console”, you’ll see the errors.
This might help: https://stackoverflow.com/questions/13421463/htaccess-access-control-allow-origin
Let me know 🙂
May 27, 2019 at 10:35 am #912413Oisin
Cheers Tom,
Another excellent bit of advice. In the immortal words of Borat, “Great success!”.
I just added this to htaccess and everything started working again:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>Strange why all other content types are fine but fonts get blocked. Are they a security risk or something?
Thanks again,
Johnny.
May 27, 2019 at 4:19 pm #912647Tom
Lead DeveloperLead DeveloperThey can be if they’re coming from a nasty source. In this case, you’re in full control of the files, so it’s safe 🙂
July 1, 2019 at 4:13 am #945875Oisin
Hi Guys,
I reverted back to a standard domain i.e. not using static subdomain. I tried to set up local fonts but keep hitting the same issue as follows:
1. I set up the local fonts using the GeneratePress guide
2. I go to the Typography settings in the Customizer and select my newly added fonts
3. I hit publish
4. I refresh then check my recent font selection only to find that it is no longer set to local fonts and is instead using Google Fonts. Aarrrrgh!
Why in the name of all that is holy could this be happening? It is frustrating beyond words.
Any help or advice much appreciated.
Johnny.
July 1, 2019 at 8:46 am #946210David
StaffCustomer SupportHi there,
checking the link in your original topic and i am seeing Montserrat and Open Sans both are being loaded from your server.
July 16, 2019 at 11:05 am #959482Oisin
Cheers David,
Yes, it seems to be working fine now. Thanks for checking in.
Generate Press has motivated me to learn CSS. I have to say thanks for creating such an amazing theme. I’m starting to appreciate just how beautifully coded it is. I’m recommending it to everyone.
The support is unreal, thanks to all the team.
Johnny.
July 29, 2019 at 1:28 am #969796David
StaffCustomer SupportGlad we could be of help and thanks for the great feedback
-
AuthorPosts
- You must be logged in to reply to this topic.