How to add custom fonts via the Media Library interface

 

  1. Add the following code to the end of your wp-config.php file. You can access this file from cPanel or using FTP. 

    /** Allows any file type to be uploaded via the Media Library.*/
    define ('ALLOW_UNFILTERED_UPLOADS', true);

  2. Now you will be able to add any file type from within your Media Library in WordPress. 

    WordPress - Media Library

 

Caution!

There is a reason why WordPress prohibits certain file types from being uploaded to WordPress. By adding this code you will be allowing authenticated users to upload any file type to WordPress. This could lead to malicious files making their way into your core file library. Think carefully before using this code and/or remove it once you have done what you need to do. 

 

  • wordpress, fonts, custom fonts, upload, install font, upload font
  • 1 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

WordPress error: "Sorry this file type is not permitted for security reasons."

Only certain types of files can be uploaded to WordPress. This is a security feature and should...

Powered by WHMCompleteSolution