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 custom-functions.php file in the theme folder (if it doesn't exist)
  • paste in the following function:
<?php
    // disable Google fonts
    add_action( 'after_setup_theme', 'theme_disable_google_fonts', 1 );
    function theme_disable_google_fonts() {
        define('THEMIFY_GOOGLE_FONTS', false);
    } 
?>

LAST DAY: Get up to 30% off code: SUMMERSALE & $100 off Lifetime Club with code: SUMMERLIFE