• Resolved cloudsoh

    (@cloudsoh)


    CSS is unable to locate my font file when I enable CSS auto minify.

    It’s trying to request

    
    example.com/wp-content/cache/webfonts/fa-brands-400.ttf # I looked, no webfonts folder in cache
    example.com/plugins/woocommerce/assets/fonts/star.ttf # It missed /wp-content
    

    What is causing these problem?
    If unable to fix, how can I debug which css file is it coming from and don’t minify them?

    Maybe the css that’s causing the problem url(../../../../../../../plugins/woocommerce/assets/fonts/star.woff) that is located in example.com/wp-content/cache/minify/4d8f1.css.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cloudsoh

    Can you please share some more details?
    What do you mean by “CSS is unable to locate my font file when I enable CSS auto minify”
    Can you also please share your website URL so we can check the console?
    Is the issue with the .woff or .ttf?
    Thanks!

    Thread Starter cloudsoh

    (@cloudsoh)

    Thanks @vmarko,

    I swear it wasn’t working yesterday when I turned on CSS minify. Today when I turn it on, it’s working. The CSS was referencing it using url(), but the url was wrong and leads to 404. It’s both font .woff and .ttf.

    Anyway, it’s working now, you can close the topic.. I will open it again if I encounter it again, thanks.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cloudsoh

    I am glad to know the issue is resolved.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minify CSS makes font missing’ is closed to new replies.