• stuartcr

    (@stuartcr)


    Hi all,

    I’m confused about uploading fonts to gutenburg.

    I have tried and tired and tired, all the suggested formats (.ttf, .otf, .woff and .woff2) it just endless loops.

    eventually i went to my hosting company to ask for help, they add this to the wp-config

    define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

    NOW i can upload the font to gutenburg.

    my question is….

    by default does wordpress prevent these file types .ttf, .otf, .woff and .woff2 from being upload? and if so then why say they are supported in the upload window?

    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stuartcr

    (@stuartcr)

    so the fix worked only once. after that i could not upload a second font.

    Plugin Author André Maneiro

    (@oandregal)

    Hi @stuartcr

    by default, Gutenberg (and WordPress) enables those file types to be uploaded. Something else must be happening.

    To be able to provide more help, we’d need a bit more information:

    – Would you be able to share a screenshot or error log of what happens when you upload a font?
    – Could you share your environment details? WordPress version and PHP version?
    – It may be possible that some other plugin is overriding the list of file types. Would you be able to disable all plugins and try uploading a font again? If it works in this scenario, we’d know the issue comes from a plugin: to identify which one you’d enable them one by one and try to upload a font —?when it stops working, that’s the one.

    Best,
    André

    Plugin Author André Maneiro

    (@oandregal)

    Hi @stuartcr

    I just remembered another thing you may want to check. Can you go to “Tools > Site Health” and then click on the “Info” tab?

    You’ll see a list of sections. One of them, at the very end, is “Filesystem permissions”. Would you check that the “The fonts directory” is writable?

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.