beaverbuilder
5/9/2018 - 11:05 PM

This snippet is used in the following knowledge base article – https://kb.wpbeaverbuilder.com/article/648-loading-fonts-and-icons-locally-gd

This snippet is used in the following knowledge base article – https://kb.wpbeaverbuilder.com/article/648-loading-fonts-and-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 ( false !== strpos( $handle, 'fl-builder-google-fonts-' ) ) {
                                  unset( $wp_styles->queue[ $key ] );
                        }
                }
        }
}, 101 );