Hello Menno,
Please add this code in the functions.php instead:
add_filter( 'cs_load_google_fonts', '__return_false' );
#
Regarding GDPR
This release cycle introduces some minor changes to aid you in the process of staying compliant. WordPress v4.9.6 added a new privacy page feature along with a checkbox added to the comment form. We’ve added styling for this new checkbox and made sure it appears correctly in all stacks.
We’ve also made some adjustments to provide you more control over the Google Fonts loading process. To fully disable Google Fonts without custom code, you can follow these steps:
- Go to Theme Options → Typography
- Enable use of the Font Manager
- Click the Settings icon in the Bar and navigate to Fonts
- Modify each font to reference a system font instead of a Google font
After these changes are saved, no references will be made to Google Fonts on the front end of your site. Additionally, you can immediately force Google Fonts to not load by adding this code to functions.php of a child theme:
add_filter( 'cs_load_google_fonts', '__return_false' );
Finally, a new filter has been added called cs_google_fonts_uri
, which can be used for advanced setups that may involve proxying Google Fonts or replicating their API.
This filter was introduced in the past updates. To read more about it, please check here:
https://theme.co/changelog/#theme-pro-2-1-0-theme-x-6-1-0-cornerstone-3-1-0
And scroll to the Regarding GPDR section.
Hope this helps.