Home Forums WoodMart support forum Upload google font

Upload google font

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #163469

    ckluong3
    Participant

    Hi, 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
    Chong

    #163484

    Hello,

    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

    #163714

    ckluong3
    Participant

    Hi, 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
    Chong

    #163726

    Hello,

    If you want to upload the fonts locally, follow the instructions here: https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/

    Best Regards

    #163815

    ckluong3
    Participant

    Hi,
    The media library only accept .svg.

    These files type are not able to upload due to security reason.
    .woff, .ttf, .eot, .woff2

    Please advice.
    Thanks

    Attachments:
    You must be logged in to view attached files.
    #163837

    Hello,

    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.

    #164009

    ckluong3
    Participant

    Hi, 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.
    #164029

    Hello,

    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

    #164041

    ckluong3
    Participant

    Hi,
    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

    #164073

    Hello,

    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

    #164575

    ckluong3
    Participant

    Hi, 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.
    #164612

    Artem Temos
    Keymaster

    Hi,

    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

    #164621

    ckluong3
    Participant

    Hi, 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.

    #164622

    Artem Temos
    Keymaster

    “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.

    #164894

    ckluong3
    Participant

    Hi, 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’mas

    #164912

    Artem Temos
    Keymaster

    Hello,

    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

    #165016

    ckluong3
    Participant

    Hi, 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.

    #165041

    Artem Temos
    Keymaster

    Firstly, you need to understand where exactly have you set this custom font as we advised.

Viewing 18 posts - 1 through 18 (of 18 total)