Description: Disables default fonts of the TwentyFifteen theme.
The TwentyFifteen themeloads the following fonts:
<link rel='stylesheet' id='twentyfifteen-fonts-css' href='https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&subset=latin%2Clatin-ext' type='text/css' media='all' />
In human readable language:
- Noto Sans: Regular, Bold, Italic, Bold Italic
- Noto Serif: Regular, Bold, Italic, Bold Italic
- Inconsolata: Regular, Bold
In total, that's 10 font assets.
The font CSS url is declared in the function twentyfifteen_fonts_url()
.
This function can be overridden by a child theme, as TwentyFifteen calls it with:
if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) :
But this plugin goes for a more generic method:
- Disable the font with wp_dequeue_style( 'twentyfifteen-fonts' );
- Register another font that you want to use.
Some ready-made plugins:
Other plugins in the WordPress.org directory: