Home Forums WoodMart support forum Unable to upload custom font

Unable to upload custom font

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

    Rajat
    Participant

    Hi,
    I am trying to upload a custom font under Theme Settings > Typography > Custom Fonts.
    However, I get the following error message during upload.
    Error: “Sorry, you are not allowed to upload this file type.”

    The file format that I am using is .woff

    #386344

    Hello,

    Thank you very much for choosing our theme and for contacting 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.

    Best Regards

    #386610

    Rajat
    Participant

    Hello Elise,
    Thank you for your help! I was able to upload the fonts that I require and have now removed the mentioned line from wp-config.php

    Regards,
    Rajat

    #386944

    You are welcome! We are here to help.

    Wish you a wonderful day!

Tagged: 

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

The topic ‘Unable to upload custom font’ is closed to new replies.