• Welcome to the all-new Kolakube support, the official place to get help for Marketers Delight, XFtoWP, CryptoWP, and other WordPress products! Please login with your account details to access private support forums.

WordPress urges theme authors to switch to locally hosted webfonts

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,562
Reaction score
1,851

The MD theme probably also needs an update to comply with locally hosted webfonts policy.
Thanks for sharing. MD doesn't come bundled with any Google Fonts and the only way to use them is to plug them in yourself into the Site Design settings, which will then call the fonts CDN.
 
Comment

Andro

Active member
Md
XFtoWP
Messages
51
Reaction score
77
Some important parts of the article:

Most theme authors have been enqueuing Google Fonts from the Google CDN for better performance, but this method exposes visitors’ IP addresses.
“The themes team strongly encourages the theme authors to update their themes,” Themes Team representative @benachi said in a recent announcement. “We recommend updating by switching to locally hosted webfonts. Luckily Google Fonts can be downloaded and bundled in a theme. Bundled font files allow users to host webfonts locally and comply with GDPR.”
The Themes Team is also considering banning remotely hosted fonts moving forward and will discuss at the next meeting.



MD doesn't come bundled with any Google Fonts and the only way to use them is to plug them in yourself into the Site Design settings, which will then call the fonts CDN.
It looks like to comply with the upcoming changes, you need to provide a way to download the Google Fonts locally when someone enables the Google Fonts option instead of enqueuing them from the Google CDN. Even though Google Fonts option in MD is optional, we still need to comply.
 
Comment

gauravtiwari

Blogger
Md
Messages
271
Reaction score
114
Website
gauravtiwari.org
There are several plugins that allow locally hosting Google fonts. MD can make recommendations in the settings panel but shouldn't completely remove it.

I have personally moved to system font stack and I'm loving it.
 
Comment

Leo Gopal

MD Team, Maker of things
Staff member
Md
Messages
143
Reaction score
53
Location
South Africa
Website
leogopal.com
I like the idea of recommending plugins to do this instead of building so many fonts into the theme, it would just be bloat. Future iterations of MD *could* eventually locally host the chosen font but not on the roadmap for anytime soon i guess.
 
Comment

Andro

Active member
Md
XFtoWP
Messages
51
Reaction score
77

 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,562
Reaction score
1,851
At this moment self-hosting fonts can be done by uploading fonts to a child theme and calling them in your stylesheet with a simple @font-face declaration. The name of that font can then be used in the Fonts & Typography panel, which MD will apply to the needed selectors for you.

Of course, it would be nice to just upload a .zip file from Google Fonts or Font Squirrel to the child theme part for you. MD already supports custom font icon uploads so it's not far-fetched for inclusion, and would help take control of font optimization.

Since MD5.5 we will now be on a mini release cycles and dropping enhancements like this in separate updates instead of single large updates for the near future.
 
Comment
Top