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 #1362182
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.
RikardAugust 22, 2022 at 12:03 pm #1362387August 22, 2022 at 2:08 pm #1362408
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
so I removed this to solve the 404 error:
please clear your browser cache and check.
MikeAugust 23, 2022 at 2:23 pm #1362509
Thank 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?
BernhardAugust 23, 2022 at 11:54 pm #1362575
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?
MikeAugust 24, 2022 at 9:21 am #1362606August 24, 2022 at 10:48 am #1362616
- The topic ‘remove or filter link/scripts of Google Fonts’ is closed to new replies.