Skip to content

Instantly share code, notes, and snippets.

@Balachandark
Created October 24, 2019 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Balachandark/04467aef05575b0df8d0d6f61b17f394 to your computer and use it in GitHub Desktop.
Save Balachandark/04467aef05575b0df8d0d6f61b17f394 to your computer and use it in GitHub Desktop.
Remove CSS style coming from custom fonts
// 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