Home › Forums › WoodMart support forum › How To Call Locally Fonts For FontAwesome & Woodmart Font
How To Call Locally Fonts For FontAwesome & Woodmart Font
- This topic has 10 replies, 3 voices, and was last updated 5 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
June 19, 2019 at 9:25 am #129201
Abdul SamadParticipantHello, folksI am getting an error for 2 fonts in page insights which are generating 2 different requests. Here is the link:
/themes/woodmart/fonts/fontawesome-webfont.woff2?v=4.7.0
/wp-content/themes/woodmart/fonts/woodmart-font.woffBoth the fonts are already in the local theme directory I am planning to call those as
@font-face {
font-family: ‘Arvo’;
font-display: auto;
src: local(‘Arvo’), url(https://fonts.gstatic.com/s/arvo/v9/rC7kKhY-eUDY-ucISTIf5PesZW2xOQ-xsNqO47m55DA.woff2) format(‘woff2’);
}method suggest by Google its self here is a link:
https://developers.google.com/web/updates/2016/02/font-display.
I guess this is something related to the core theme. Can you please tell me how can I resolve this issue?
I am planning to achieve 100/100 Page insight score as my client is referring page insight as page speed test tool. Want 100% score.
June 19, 2019 at 11:47 am #129208
Artem TemosKeymasterHi,
Sorry, but your question is not quite clear for us. What errors do you mean?
Please, disable all external plugins first so we can check it.Regards
June 19, 2019 at 1:54 pm #129276
Abdul SamadParticipantSorry for been unclear:
Here is what trying to say:
Ensure text remains visible during webfont load…fonts/fontawesome-webfont.woff2?v=4.7.0(www.de-marca.com)
…fonts/woodmart-font.woff(www.de-marca.com)What I have search so far tell that you can solve this issue with:
@font-face {
font-family: ‘Arvo’;
font-display: auto;
src: local(‘Arvo’), url(https://fonts.gstatic.com/s/arvo/v9/rC7kKhY-eUDY-ucISTIf5PesZW2xOQ-xsNqO47m55DA.woff2) format(‘woff2’);
}Or is there any way to disable the above mention 2 fonts.?
June 19, 2019 at 2:32 pm #129294
Abdul SamadParticipantBasically I want to disable 2 fonts from the theme which are:
…fonts/fontawesome-webfont.woff2?v=4.7.0(www.de-marca.com)
…fonts/woodmart-font.woff(www.de-marca.com)Can you guide me how can I do this?
June 19, 2019 at 5:01 pm #129285
Artem TemosKeymasterFont awesome seems to be loaded by plugins and we don’t know where you can customize the code exactly. Our WoodMart font is required for vecor icons on your website and doesn’t have a
@font-face
so the code can’t be applied there.Regards
June 19, 2019 at 6:33 pm #129314
fadedturbulenceParticipantHello,
I would like to agree (to OP). If there is anyway to get the @font-face to work that would be great as I have a few seconds extra loading time because of this. I don’t want to change the font but if I do will that make the ‘vector icons’ not operate?
Screenshot to show: http://digitdoublerapparel.com/imgs/webfont.png and the link it explains on: https://developers.google.com/web/updates/2016/02/font-display
Thanks!
June 19, 2019 at 7:33 pm #129295
Artem TemosKeymasterSorry, but they can’t be disabled since you will lose all the icons in our theme. If you want to do this, you will have to customize theme CSS files but we don’t have an instruction for this.
June 20, 2019 at 10:58 am #129418
Abdul SamadParticipantI have disabled all the external google fonts using auto optimized WordPress plugin but these 2 are causing real trouble. It’s making my website 2-second delay and my client is comparing this store performance with amazon 😛
Can you help me with any further issue showed by page insights
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.de-marca.com&tab=desktopWould be great if any one can help me out for further optimization
June 20, 2019 at 7:15 pm #129420
Artem TemosKeymasterWhat exact problem do you mean? We don’t see any issues related to our theme now. Sorry, but website optimization is not in our theme support scope.
August 11, 2019 at 7:44 pm #137528
fadedturbulenceParticipantJust want to update that I appreciate the speed optimizations with the new v4 of the theme.
Having plugins deactivated and features like this (font-display) implemented has helped my site speed up some (and improve on PageSpeed Insights by ~35 points!).
I chose SWAP on Google Fonts & FALLBACK on Icon Fonts – this gave me the pass for all rendering fonts (had to do icon fonts as well or it still showed font awesome lagging). But your mileage may vary, so you may need to chose something else. Attached is the PS Insights passed diagnostic.
Thanks for implementing this 🙂
Attachments:
You must be logged in to view attached files.August 12, 2019 at 7:26 am #137570
Artem TemosKeymasterGreat, we are glad that it works for you.
-
AuthorPosts
Tagged: Speed Optimization
The topic ‘How To Call Locally Fonts For FontAwesome & Woodmart Font’ is closed to new replies.
- You must be logged in to create new topics. Login / Register