Support » Theme: Dynamic News Lite » Preloading google fonts question

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)
  • You must be logged in to reply to this topic.