Black Screen Issue: Please update your theme to ensure WordPress 5.6 compatibility. Dentalia 2.1 and Recycle 2.1 are now available on ThemeForest. 

Okay
  Public Ticket #2987804
Disable Google fonts
Closed

Comments

  •  2
    Patrick Pourquery started the conversation

    Hi, I would like to disable the connection to google fonts to install them localy. Could you please tell me how to disable the connection to Google?

    Thank you

    Patrick

  •  530
    OrionThemes replied

    Hi Patrick,

    Technically it is possible to prevent Dentalia loading Google fonts.
    It is not something I'd generally recommend anyone to do, unless they know what they are doing. Also you'll need to load those fonts locally, to avoid typography issues on your site.
    Mind me asking, if this is linked to the GDPR rules in Germany?  

    Here is how to prevent Dentalia theme to load any fonts from Google 

    1. Enable a child theme.
    A blank sample Dentalia child theme is included within the main file zip file (on Envato).

    2. Add the following code snippet to the child theme functions.php file:

    add_action( 'redux/loaded', function( $redux ) {
        $redux->args['disable_google_fonts_link'] = true;
    });

    Kind regards,

    Andrej


  •  2
    Patrick Pourquery replied

    thank you Andrej, it works fine. Yes my request was because of the GDPR rules in Germany. One more question. The Dentalia child theme is activated, the main theme is desactivated. Will it have an impact on the future update?

    Patrick

  •  530
    OrionThemes replied

    Hi Patrick

    Child theme depends on the parent theme. It loads all of the parent theme features, but in addition to this, it loads any code in the child theme. Using the child theme is the best way to ensure longetivity of your customisations. It is the recommended way of extending your theme. 
    If you customize the code in the parent theme, the modifications will get overwritten when you update the theme. But if you add your modifications to the child theme, the update (of parent theme) will not overwrite them. All the changes will stay in the child theme and work with the new theme version as well. 

    Kind regards,

    Andrej