Created
March 26, 2015 14:15
-
-
Save ajithrn/45b16723c336e311e0da to your computer and use it in GitHub Desktop.
WordPress: Remove WP 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 Open Sans that WP adds from frontend | |
*/ | |
if (!function_exists('remove_wp_open_sans')) : | |
function remove_wp_open_sans() { | |
wp_deregister_style( 'open-sans' ); | |
wp_register_style( 'open-sans', false ); | |
} | |
add_action('wp_enqueue_scripts', 'remove_wp_open_sans'); | |
// Uncomment below to remove from admin | |
// add_action('admin_enqueue_scripts', 'remove_wp_open_sans'); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment