Font File Location

I have been storing my fonts in a subdirectory in my child theme and loading them via my stylesheet. When I selected the google font in the Cornerstone Global configurations section for the font palette, it would pick up my selection but it would use the local font file from the path specified in my style sheet. I know it was picking up the local file, because my testing server is not connected to the internet most of the time.

This is no longer working. I also notice that in the font palette it no longer lists just the font I’ve selected. Now it says something like “google:poppins” instead of just “poppins”. I also notice it no longer gives me the option to select google fonts in the palette when I’m offline, which again is 90% of the time.

I have been loading fonts locally this way for years. It let me store them where I wanted and still refer to them normally in the Cornerstone builder. I do not want to put them in the Media Library because I’ve had people decide to “clean up” anything in there they don’t recognize and cause problems. I’d prefer to put fonts, and anything else the site relies on, in a place most users don’t have access to.

Since something has changed with font management, I’d like to know if there’s a workaround that will get me back to the functionality I’m used to.

I did some testing this morning. This is something that has changed in a recent update. I went back to 6.5.5 and the behavior above is still there, but when I went back to 6.5.2 things worked normally and my fonts display. Also

add_filter( ‘cs_load_google_fonts’, ‘__return_false’ );

is set in my functions.php, which is further confirmation that I’m loading fonts locally. This line is also something I’ve been using on my sites for quite a while with no issues.

Any updates?

Hey @Sheri17,

Thanks for reporting. I have replicated this in my test site and this looks like a bug.

Please remain in version 6.5.5 for now while I report this to our development team.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.