Define Google Font Weights To Be Enqueued
/**
* Alter the font-weights to be loaded with your selected Google Fonts
* as defined at Customizer > Typography
*
* @link http://total.wpexplorer.com/docs/snippets/google-font-weights/
* @see framework/fonts.php
* @since 3.3.2
*
* @return array
*/
function myprefix_wpex_google_font_enqueue_weights( $weights ) {
$weights = array( '100', '200', '300', '400', '500', '600', '700', '800', '900' );
return $weights;
}
add_filter( 'wpex_google_font_enqueue_weights', 'myprefix_wpex_google_font_enqueue_weights' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)