Home Forums WoodMart support forum Google font weight

Google font weight

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164885

    arturs4
    Participant

    Hi!

    I have 2 questions about fonts:

    1. Does your theme load only those google fonts which are required in specific page? For example, if I use only font-weight 400, does that mean that theme will load only font with weight 400 or all of them, including 200, 300, 500 etc?

    2. I downloaded Google font and tried to upload on my site as custom font, but WP doesnt allow me to, it says that WOFF file type is not safe. Any solutions?

    Regards,
    Arturs

    #164917

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Theme will load google fonts for all of them, including 200, 300, 500 etc even if you used 400 weight for your font in some pages.

    Kindly read and follow the below documentations to upload your custom fonts.
    https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/

    In case after following the above documentations if the error still shown as “This file type cannot be uploaded due to security reasons.” Then follow the below steps:

    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 wp-config.php file

    Best Regards.

    #164960

    arturs4
    Participant

    Hi!

    I added define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); at the bottom of wp-config – it didnt work.
    I moved define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); to the middle of wp-config – it didnt work.
    Then I moved define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); to the first line of wp-config – and then it worked.

    Strange, but most important – it worked. Thanks!

    Regards,
    Arturs

    #164966

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Most Welcome :)

    I’m glad that it finally works.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

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

The topic ‘Google font weight’ is closed to new replies.