Stop Beaver Builder From Loading Google Fonts
Prevents Beaver Builder modules from requesting fonts from Google, for privacy (GDPR) and faster pages.
Opens WPIDE on
Code
add_filter( 'fl_builder_google_fonts_pre_enqueue', function () {
return array();
} );
Notes
Modules set to a Google font fall back to the next font in the stack; add your own fonts with "Add System Fonts to Beaver Builder".
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.