WordPress does not allow uploading a file (font ttf and otf).

stage en wordpress
Contents

    Some themes or plugins support uploading fonts such as google fonts. The safety regulations of WordPress however refuse to upload these two files .ttf and .otf .

    « Unfortunately, this file type is not allowed for security reasons »

    Our solution: Temporarily override the security mechanism!

    The following line is added to the wp-config.php file:

    define('ALLOW_UNFILTERED_UPLOADS', true);

    Now you can upload the fonts.

    It is strongly recommended to remove the line from the wp-config.php file again.

    Dieser Beitrag ist auch verfügbar auf: Deutsch (German)

    Updated on 27. March 2024
    Was this article helpful?

    Leave a Reply

    Your email address will not be published. Required fields are marked *