You appear to be a bot. Output may be restricted
Description
Register Google fonts for Twenty Sixteen.
Create your own twentysixteen_fonts_url() function to override in a child theme.
Usage
$string = twentysixteen_fonts_url();
Parameters
Returns
string Google fonts URL for the theme.
Source
File name: twentysixteen/functions.php
Lines:
1 to 42 of 42
function twentysixteen_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* * translators: If there are characters in your language that are not supported * by Merriweather, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) { $fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic'; } /* * translators: If there are characters in your language that are not supported * by Montserrat, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) { $fonts[] = 'Montserrat:400,700'; } /* * translators: If there are characters in your language that are not supported * by Inconsolata, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) { $fonts[] = 'Inconsolata:400'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), 'display' => urlencode( 'fallback' ), ), 'https://fonts.googleapis.com/css' ); } return $fonts_url; }