Home New Guten Forums WoodMart support forum The Problem with adding new fonts file

The Problem with adding new fonts file

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

    hasanarastart
    Participant

    Hi, I am trying to add a new font to my site but there is a problem says you are not allowed to upload this type of file. Can you halp me with that?

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

    Hung Pham
    Keymaster

    Hi hasanarastart,

    Thanks for reaching to us.

    In case you see “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 font files formats

    3. Remove this line from wp-config.php file

    Let us know if you have more questions, we will be happy to help.

    Regards,

    #523512

    hasanarastart
    Participant

    Whenever I try to add this code to wp confiq all site and admin panel crush down so I can not upload fonts.

    #523537

    Hung Pham
    Keymaster

    Hi hasanarastart,

    I checked the fonts and no .woff or .woff2 files type as required.

    But, I tried to upload other fonts file type and it worked well https://prnt.sc/jzTskklbrBt3

    Please convert fonts type and reupload again. You can read more our documentation https://xtemos.com/docs-topic/how-to-upload-custom-fonts/

    Regards,

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