Viewing 1 replies (of 1 total)
  • Theme Author ThemeZee

    (@themezee)

    Hi there,

    The CSS stylesheet which loads the fonts with @font-face is enqueued in the functions.php of the theme:

    /**
     * Enqueue custom fonts.
     */
    function dynamicnews_custom_fonts() {
    	wp_enqueue_style( 'dynamicnews-custom-fonts', get_template_directory_uri() . '/css/custom-fonts.css', array(), '20180413' );
    }
    add_action( 'wp_enqueue_scripts', 'dynamicnews_custom_fonts', 1 );
    add_action( 'enqueue_block_editor_assets', 'dynamicnews_custom_fonts', 1 );

    Cheers,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘Preloading google fonts question’ is closed to new replies.