Home Forums WoodMart support forum Unable to upload custom font from the theme settings panel

Unable to upload custom font from the theme settings panel

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #148384

    samriddhipandey
    Participant

    Hi,

    I am unable to upload two font families in all formats (.otf, .ttf, .woff, .woff2, .svg) and all weights. In the WP upload panel it displays an error “This file type cannot be uploaded due to security reasons.”

    Following suggestions from the forum, I have tried converting fonts online and uploading them but it still hasn’t worked. My brand has certain guidelines and need to use two custom fonts. Please help !!

    PFA font families in the attachments

    #148422

    Hello,

    First of all thanks for choosing our Theme, we are glad to be you in WoodMart WordPress family :).

    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.

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