Created
October 24, 2019 06:27
-
-
Save Balachandark/04467aef05575b0df8d0d6f61b17f394 to your computer and use it in GitHub Desktop.
Remove CSS style coming from custom fonts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove CSS style coming from custom fonts. | |
add_action( 'wp', 'remove_styles' ); | |
function remove_styles() { | |
if( class_exists( 'Bsf_Custom_Fonts_Render' ) ) { | |
remove_action( 'wp_head', array( Bsf_Custom_Fonts_Render::get_instance(), 'add_style' ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment