Home › Forums › WoodMart support forum › Upload google font
Upload google font
- This topic has 17 replies, 3 voices, and was last updated 5 years, 2 months ago by
Artem Temos.
-
AuthorPosts
-
December 15, 2019 at 5:10 pm #163469
ckluong3ParticipantHi, my site’s woodmart theme is using Lato and Roboto font, may I know how can I add expires headers to these fonts? Please advise.
Thanks
ChongDecember 15, 2019 at 8:41 pm #163484
Elise NoromitMemberHello,
You can configure the font in Theme Settings > Typography and Advanced Typography.
Here is the documentation providing more detailed instructions: https://xtemos.com/docs/woodmart/advanced-typography-settings/
If you want to upload the fonts, follow the instructions here: https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/
Best Regards
December 17, 2019 at 9:07 am #163714
ckluong3ParticipantHi, Sorry I am bit of confused. The Lato and Roboto fonts are already available in the font list in Theme Settings > Typohraphy. Is this means these fonts are load locally from my server or load from Google’s server?
If this is load from Google’s server, may I know what should I do to make it load locally from my server? I couldn’t find any information in your provided links as it telling how to add the custom font to the site. But the two fonts (Lato and Roboto) is an existing font from the theme.
Appreciate your advise.
Thanks
ChongDecember 17, 2019 at 10:06 am #163726
Elise NoromitMemberHello,
If you want to upload the fonts locally, follow the instructions here: https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/
Best Regards
December 18, 2019 at 2:51 am #163815
ckluong3ParticipantHi,
The media library only accept .svg.These files type are not able to upload due to security reason.
.woff, .ttf, .eot, .woff2Please advice.
ThanksAttachments:
You must be logged in to view attached files.December 18, 2019 at 6:54 am #163837
Elise NoromitMemberHello,
In order to solve the security problem.
1. Add this line to the wp-config.php file: define( ‘ALLOW_UNFILTERED_UPLOADS’, true );
2. Upload all files formats
3. Remove this line from the wp-config.php file
If you have file size problem, contact your host support to solve this issue.
Best Regards.
December 19, 2019 at 8:05 am #164009
ckluong3ParticipantHi, I uploaded the font files(Roboto) media library and the custom fonts page. And I set only Roboto font for my Typography usage, however why is there a Lato font error shows in Add Expires headers, please help.
Thanks.Attachments:
You must be logged in to view attached files.December 19, 2019 at 9:17 am #164029
Elise NoromitMemberHello,
Please check the issue on a default theme to find out if our theme influences this. The theme setts font-family for the front-end of the site.
Also, clean all the browser and server cache.
Best Regards
December 19, 2019 at 10:20 am #164041
ckluong3ParticipantHi,
I have clear the cache and the result still the same.May I know how to check on default theme, search the below default theme URL through gtmetrix?
https://woodmart.xtemos.com/Please advise. Thanks
December 19, 2019 at 1:10 pm #164073
Elise NoromitMemberHello,
Please navigate to Dashboard > Themes, install and activate twenty fourteen or else, and check. Please export the theme settings before doing it as in the result of theme switching the settings may reset.
Best Regards
December 23, 2019 at 3:54 am #164575
ckluong3ParticipantHi, I tried to switch to other theme and the Lato font error is disappeared in Add Expires headers, please advise.
Thanks.Attachments:
You must be logged in to view attached files.December 23, 2019 at 8:00 am #164612
Artem TemosKeymasterHi,
Google fonts are loaded form google server’s and we are not able to set expires headers there. The same error is on your screenshot but with other fonts.
Regards
December 23, 2019 at 8:53 am #164621
ckluong3ParticipantHi, I understand that we can’t set expires headers from google server. Hence I would like to host all my website’s font locally.
As shared previously, Roboto font is the only font I am using for my site, and I have uploaded it through the Custom Font setting. Why is there an error showing my site is using Lato font?
Please advise, thanks.
December 23, 2019 at 9:54 am #164622
Artem TemosKeymaster“Lato” font is currently used by WPBakery page builder https://gyazo.com/e59f0b499b996f72a567435fa2bb47b1
Probably, you are using some WPBakery core elements and select “Lato” font there.December 25, 2019 at 2:45 am #164894
ckluong3ParticipantHi, May I know how to check which WPBakery page content is using the Lato font? I thought the custom font function in the woodmart theme can overrule the whole website font?
Please advise,
Thanks & Merry X’masDecember 25, 2019 at 7:00 am #164912
Artem TemosKeymasterHello,
Try to create a separate page and copy the whole content from that one. Then, remove all elements one by one to see where the font is used. It is usually used by some text elements.
Kind Regards
December 26, 2019 at 3:11 am #165016
ckluong3ParticipantHi, all my pages are created by text elements and images. Please advise how can I change the WPBakery page’s font and link it to my custom font?
Thanks.
December 26, 2019 at 7:04 am #165041
Artem TemosKeymasterFirstly, you need to understand where exactly have you set this custom font as we advised.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register