Tagged: DSGVO, font, Google, google font, remove
-
AuthorPosts
-
August 19, 2022 at 10:09 am #1362156
Hey Kriesi Team,
currently, there are warnings from lawyers in German-speaking countries because this technical way of integrating Google Font is not (anymore) DSGVO-compliant according to various court rulings in this calendar year. So we need to remove everything Google Font related.We already uploaded the font directly to the theme so it should use only those: https://prnt.sc/R5Ecku1btUHw // https://prnt.sc/sOU8FsIKEl54
But there are still Google Font scripts/codes on it. We used this tool to check it: https://sicher3.de/google-fonts-checker/ (https://prnt.sc/qSK_QXH8_xWs)We already found some snippets that should remove it:
But none of them work and we really don’t know where to look else.
Any solutions you can suggest? We would prefer if we could filter it and not remove it, otherwise it will be there again when updated.Thanks in advance & Kind regards
BernhardAugust 19, 2022 at 4:04 pm #1362182Hi Bernhard,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardAugust 22, 2022 at 12:03 pm #1362387Login is in the Private Content.
Thanks in advance.August 22, 2022 at 2:08 pm #1362408Hi,
Thank you for the login, after much research I found that part of this issue was from the WP Rocket plugin adding the google font preconnect link to the site:
to disable this you have to install a extra plugin from WP Rocket:
I did this for you to ensure that this would work, which it did but you also had a google font link in your header.php so I removed this also:
I also found that WP Rocket was also preloading the fonts at Preload ▸ URLs to prefetch, so I removed these URLs:
//fonts.gstatic.com //fonts.googleapis.com //www.google-analytics.com //www.google.com //www.googletagmanager.com //www.gstatic.com
and this solved your issue:
The one last thing that I noticed was a 404 error for the url in the WP Rocket Preload ▸ Fonts to preload
/wp-content/uploads/avia_fonts/type_fonts/open-sans-v34-latin/open-sans-v34-latin-regular.ttf
so I removed this to solve the 404 error:
please clear your browser cache and check.Best regards,
MikeAugust 23, 2022 at 2:23 pm #1362509Thank you for the detailed and comprehensive answer and solution to this. All good now.
What I would like to ask, is that if the fonts are imported directly in Enfold should be nothing more visible from the theme side, correct?Kind regards
BernhardAugust 23, 2022 at 11:54 pm #1362575Hi,
Glad we could help, this is correct, your issues were caused by the WP Rocket plugin and the code added to your header.php was custom and not standard for the Enfold header.php file. Unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeAugust 24, 2022 at 9:21 am #1362606Hello, yeah, all clear now, thanks again.
August 24, 2022 at 10:48 am #1362616Hi Bernhard,
I’m glad that Mike could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘remove or filter link/scripts of Google Fonts’ is closed to new replies.