Disabling Google Fonts

If you need to disable the Google Fonts list in the Styling panel (eg. server can not load the fonts or performance issues), you can disable it with the following custom function.

  • Create a child theme and a functions.php file (if it doesn't exist)
  • Paste in the following function:
    // disable Google fonts
    add_action( 'after_setup_theme', 'theme_disable_google_fonts', 1 );
    function theme_disable_google_fonts() {
        define('THEMIFY_GOOGLE_FONTS', false);

Sign up now for the WordPress Birthday Competition for a chance to get featured & win a Master Club!