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:
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?
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.
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
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:
Kind regards,
Andrej
OrionThemes
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
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
OrionThemes