includes/inc/extras.php
/**
 * Enqueue Google Fonts for Blocks Editor
 */
Enqueue Google Fonts for Blocks Editor
Enqueue Google Fonts for Blocks Editor
function customizer_vogue_editor_fonts() {
	$fonts = array(
		get_theme_mod( 'vogue-body-font', customizer_library_get_default( 'vogue-body-font' ) ),
		get_theme_mod( 'vogue-heading-font', customizer_library_get_default( 'vogue-heading-font' ) )
	);
	$font_uri = customizer_library_get_google_font_uri( $fonts );
	if ( !get_theme_mod( 'vogue-disable-google-fonts', customizer_library_get_default( 'vogue-disable-google-fonts' ) ) ) {
		wp_enqueue_style( 'customizer_vogue_editor_fonts', $font_uri, array(), null, 'screen' );
	}
}
function customizer_vogue_editor_fonts ( ) { $ fonts = array ( get_theme_mod ( 'vogue-body-font' , customizer_library_get_default ( 'vogue-body-font' ) ) , get_theme_mod ( 'vogue-heading-font' , customizer_library_get_default ( 'vogue-heading-font' ) ) ) ; $ font_uri = customizer_library_get_google_font_uri ( $ fonts ) ; if ( ! get_theme_mod ( 'vogue-disable-google-fonts' , customizer_library_get_default ( 'vogue-disable-google-fonts' ) ) ) { wp_enqueue_style ( 'customizer_vogue_editor_fonts' , $ font_uri , array ( ) , null , 'screen' ) ; } }
Enqueue Google Fonts for Blocks Editor
Enqueue Google Fonts for Blocks Editor
// Font options // Load Google Fonts