• Resolved lwj5

    (@lwj5)


    Hi there,

    I’m facing an issue when I try either CSS combine or minify.
    The plugin replaces the relative font-face URL with another URL which returns 404 not found.

    Here’s two examples:

      A

    Original

    @font-face {
        font-family: page-builder-framework;
        src: url(fonts/page-builder-framework.woff2) format("woff2"),url(fonts/page-builder-framework.woff) format("woff"),url(fonts/page-builder-framework.ttf) format("truetype"),url(fonts/page-builder-framework.eot);
        font-weight: 400;
        font-style: normal
    }

    Loaded path: /wp-content/themes/page-builder-framework/fonts/page-builder-framework.woff2 (200)

    Replaced

    @font-face {
        font-family: 'page-builder-framework';
        src: url("content/themes/page-builder-framework/fonts/page-builder-framework.woff2") format("woff2"),url("content/themes/page-builder-framework/fonts/page-builder-framework.woff") format("woff"),url("content/themes/page-builder-framework/fonts/page-builder-framework.ttf") format("truetype"),url("content/themes/page-builder-framework/fonts/page-builder-framework.eot");
        font-weight: normal;
        font-style: normal
    }

    Loaded path: /wp-content/cache/minify/content/themes/page-builder-framework/fonts/page-builder-framework.woff (404)

      B

    Original

    @font-face {
        font-family: aracne;
        src: url(fonts/aracne.woff) format("woff");
        font-weight: 400;
        font-style: normal
    }

    Loaded path: /wp-content/themes/abcd/fonts/aracne.woff (200)

    Replaced

    @font-face {
        font-family: "Aracne";
        src: url("content/themes/abcd/fonts/aracne.woff") format("woff");
        font-weight: normal;
        font-style: normal
    }

    Loaded path: /wp-content/cache/minify/content/themes/abcd/fonts/aracne.woff (404)

    Any ideas on what I can do to resolve this? Thanks

    The page I need help with: [log in to see the link]

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

    (@vmarko)

    Hello @lwj5

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    The minify feature tries to change relative CSS URLs into absolute URLs, but your examples don’t look like you have absolute URLs.

    I’m not sure where content/themes/abcd/ is coming from.
    We are going to try to replicate this and get back to you as this is the first issue of this kind reported.
    Thanks!

    Thread Starter lwj5

    (@lwj5)

    Thanks for looking into it

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @lwj5

    Thank you for your patience.
    I’ve opened a GitHub issue on your behalf in our GitHub repository.
    Please make sure to track the progress of the issue regularly.
    Also if convenient please post a comment to the issue with your server variables
    <?php var_dump($_SERVER); ?>
    php script will show it.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS minify replaced font-font url 404’ is closed to new replies.