Load Font awesome and Google fonts locally code goes into functions.php https://kb.wpbeaverbuilder.com/article/648-loading-google-fonts-and-font-awesome-icons-locally-gdpr
<?php // do not copy this line, start with line 3
add_action( 'wp_enqueue_scripts', function() {
global $wp_styles;
if ( isset( $wp_styles->queue ) ) {
foreach ( $wp_styles->queue as $key => $handle ) {
if ( 'font-awesome-5' === $handle ) {
if ( is_dir( ABSPATH . '/fonts/font-awesome' ) ) {
$wp_styles->registered[ $handle ]->src = site_url( 'fonts/font-awesome/web-fonts-with-css/css/fontawesome-all.min.css');
}
}
}
}
}, 11 );
<?php
//Stop Beaver Builder from loading remote Google fonts
add_action( 'wp_enqueue_scripts', function() {
global $wp_styles;
if ( isset( $wp_styles->queue ) ) {
foreach ( $wp_styles->queue as $key => $handle ) {
if ( false !== strpos( $handle, 'fl-builder-google-fonts-' ) ) {
unset( $wp_styles->queue[ $key ] );
}
}
}
}, 101 );
?>
?>
// module enqueued google fonts
add_filter( 'fl_builder_google_fonts_pre_enqueue', function( $fonts ) {
return array();
} );
// takes care of theme enqueues
add_action( 'wp_enqueue_scripts', function() {
global $wp_styles;
if ( isset( $wp_styles->queue ) ) {
foreach ( $wp_styles->queue as $key => $handle ) {
if ( false !== strpos( $handle, 'fl-builder-google-fonts-' ) ) {
unset( $wp_styles->queue[ $key ] );
}
}
}
}, 101 )
?>