• Hi,

    we use automated systems to sync a site to another server. When using your plugin we discovered that syncing the generated CSS file isn’t possible as it contains absolute urls that point to the “old” server. This then breaks loading of the fonts.

    Therefore it would be awesome if your plugin could only use “path-absolute” URLs like “/wp-content/uploads/fonts/123456/my-font.woff2” which omit the host.

    Otherwise we must recreate the CSS file by hand (which breaks automation) oder patch the CSS file afterwards which is not ideal.

    Best

Viewing 1 replies (of 1 total)
  • Thread Starter pluspol

    (@pluspol)

    It might be sufficient to change:
    return apply_filters( 'lgf_folder_url', $folder_url );
    to
    return apply_filters( 'lgf_folder_url', wp_make_link_relative($folder_url) );
    in
    includes/class-local-google-fonts.php

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