Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Disable Google Fonts

Data Protectionfontsgoogle fontsPrivacy
    • 5 years, 8 months ago Supermarky
      Participant

      Hi there,

      how is it possible to DISABLE the usage of GOOGLE FONTS.
      Here in Germany many people are worried about the GDPR so we need to stop using GOOGLE FONTS in youre theme.

      Please help. Thanks!

    • 5 years, 8 months ago Mirela
      Participant

      Hello,

      Please go to file functions.php and find this block:

      /**
       * List Google Fonts
       * @since 1.0.0
        */
      function codeless_get_google_fonts(){
          $return = array('theme_default' => 'Theme Default');
      
          $google_fonts   = Kirki_Fonts::get_google_fonts();
          $standard_fonts = Kirki_Fonts::get_standard_fonts();
      
          $google_fonts = array_combine(array_keys($google_fonts), array_keys($google_fonts));
          $standard_fonts = array_combine(array_keys($standard_fonts), array_keys($standard_fonts));
          $return = array_merge($return, $google_fonts, $standard_fonts);
      
          return $return;
      } 
      

      Edit out to this:

      /**
       * List Google Fonts
       * @since 1.0.0
        */
      function codeless_get_google_fonts(){
          $return = array('theme_default' => 'Theme Default');
        
          $standard_fonts = Kirki_Fonts::get_standard_fonts();
      
          $standard_fonts = array_combine(array_keys($standard_fonts), array_keys($standard_fonts));
          $return = array_merge($return, $standard_fonts);
      
          return $return;
      } 

      Let us know.
      Best regards!

Viewing 1 reply thread

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password