Instead of hardcoding URLs to Google font resources, we will write a function to take care of all the logic related to these fonts. It takes no parameters and returns a string, which starts out empty. We also added a PHP comment to give further instructions to the translators in code. As we use a translation function, the text above will show up in translation tools like GlotPress. With that done, we can construct the correct URL depending on what fonts are enabled. First, we check to see if both fonts have been deactivated by the translators; no need to continue in that case.
Remove Google Fonts from Sparkling WordPress Theme using a Child Theme · GitHub
After a lot of research a few months! I managed to implement an efficient way to do it. Version 1. Your motivation to remove the externally hosted Google Fonts from your blog may differ. It might be a design or programming choice, but in most cases the reason is site optimization. Even Google says so.
How to Add Google Fonts to Your WordPress Theme
This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation. Windows, Mac OS and browsers i.
Typography is one of the most important elements of your website. As a minimum, your website needs to be clear and easily readable. Yet, typography also offers much more.