• In functions.php, Wabi preloads the main font:

    function wabi_preload_webfonts() {
    	?>
    	<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Inter-Roman.var.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
    	<?php
    }

    Why is there .var before the font’s file extension? The names of the font files in Wabi’s fonts folder don’t have this .var. .var doesn’t show in the source code either.

    Is .var necessary?

  • The topic ‘Necessity of .var in font file name’ is closed to new replies.