There are no broken links now with the following functions.php.
<?php function my_theme_enqueue_styles() { $parent_style = 'twentyseventeen-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ) ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_update_styles( $styles ) { $mtime = filemtime( get_stylesheet_directory() . '/style.css' ); $styles->default_version = date("Y-m-d-D-H:i:s", $mtime); } add_action( 'wp_default_styles', 'my_update_styles' ); remove_action( 'wp_head', 'wp_resource_hints', 2 ); function my_dns_prefetch() { echo '<link rel="dns-prefetch" href="//fonts.googleapis.com/css?family=Asap|Julee" />' . "\n"; } add_action( 'wp_head', 'my_dns_prefetch' ); ?>
The html file is:
45 <link rel='stylesheet' id='twentyseventeen-style-css' href='https://spinorlab.matrix.jp/en/wp-content/themes/twentyseventeen/style.css?ver=2017-08-03-Thu-00:25:48' type='text/css' media='all' /> 46 <link rel='stylesheet' id='child-style-css' href='https://spinorlab.matrix.jp/en/wp-content/themes/twentyseventeen-child/style.css?ver=2017-08-03-Thu-00:25:48' type='text/css' media='all' /> 47 <link rel='stylesheet' id='twentyseventeen-fonts-css' href='https://fonts.googleapis.com/css?family=Libre+Franklin%3A300%2C300i%2C400%2C400i%2C600%2C600i%2C800%2C800i&subset=latin%2Clatin-ext' type='text/css' media='all' /> 60 <link rel="dns-prefetch" href="//fonts.googleapis.com/css?family=Asap|Julee" />
Since we have the line 47, the line 60 added by my functions.php is not necessary right now, but I keep it just for the future’s sake.