Remove Google Open Sans font in WordPress

By | July 3, 2017

Remove Google Open Sans font in WordPress,Disable Google Fonts,Remove Google Web Font,How to completely remove google fonts,stop unwanted google fonts 

 

WordPress from the 3.8 version will automatically from all the pages from Google’s font library to load Open Sans , but google font not good for page speed  , and because of this reason, the speed of loading these fonts in the country is Very slow. So today to teach you how to remove the code in WordPress by default to install the Google Open Sans font.

 

Remove Google Open Sans font in WordPress

Remove Google Open Sans font in WordPress

 

function remove_open_sans() {
	wp_deregister_style('open-sans');
	wp_register_style('open-sans', false);
	wp_enqueue_style('open-sans', '');
}
add_action('init', 'remove_open_sans');

remove google fonts in wordpress twentyfifteen

function wpse_dequeue_google_fonts() {
    wp_dequeue_style( 'twentyfifteen-fonts' );
}
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 );

Leave a Reply

Your email address will not be published. Required fields are marked *