Home Forums WoodMart support forum Custom font upload issue

Custom font upload issue

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

    srknmzlm
    Participant

    Hello, I want to install my own .woff2 font. I click on Typography > Custom Fonts. When you select Upload, “Sorry, you are not allowed to upload this file type.” i am getting the error. I tried this by editing the wp config file but it still didn’t work. I tried via the plugin, but the result is still disappointing. Can you guide me on this?

    define(‘ALLOW_UNFILTERED_UPLOADS’, true);

    #426503

    Hello,

    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

    Kind Regards

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