Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Local fonts + CDN – relative path vs absolute URL

Home / Forums / Kadence Theme / Local fonts + CDN – relative path vs absolute URL

This topic is: Not a support question
[Not a support question]
Posted in: Kadence Theme

Tagged: 

February 10, 2021 at 1:16 am

I turned on “Load Google Fonts Locally” in the customizer for Kadence. Works well.

I added a CDN and have WP Rocket handling the rewrites, eg. mydomain.com -> cdn.mydomain.com

But, font files are being loaded from mydomain.com, not the CDN. This seems to be because the kadence fonts css file is using absolute URLs.

The flow-on effect is that when I tried using the Asset Cleanup Pro plugin to preload the local font files, I end up loading fonts twice because ACP is CDN aware and rewrites the font URLs as cdn.mydomain.com…

Is there a hook/filter I can use to make Kadence generate the URLs in the Kadence fonts CSS file as relative paths? Or can this behavior be changed in an update?

  • The forum ‘Kadence Theme’ is closed to new topics and replies.