How to handle relative font-face links in css when using minified css files generated by w3 total cache plugin for wordpress How to handle relative font-face links in css when using minified css files generated by w3 total cache plugin for wordpress wordpress wordpress

How to handle relative font-face links in css when using minified css files generated by w3 total cache plugin for wordpress


I'm dealing exactly with the same problem, the version of W3 Total Cache I'm dealing with is 0.9.7 and I don't use whitespaces for the files name.

The only solution I have found is to use Font Awesome free CDN, for example:

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.4/css/all.css" integrity="sha384-DmABxgPhJN5jlTwituIyzIUk6oqyzf3+XuP7q3VfcWA2unxgim7OSSZKKf0KSsnh" crossorigin="anonymous">

You can include it in header.php. In this way, you will avoid any W3 Total Cache interference.