Sfoglia il codice sorgente

Correct livro_preload_webfonts() (#5412)

There is an error in the path that loads Newsreader font inside book_preload_webfonts().
I am simply suggesting changing the path to the correct one.
Frederico Branquinho Teixeira 3 anni fa
parent
commit
99554bf5c7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      livro/functions.php

+ 2 - 2
livro/functions.php

@@ -136,8 +136,8 @@ if ( ! function_exists( 'livro_preload_webfonts' ) ) :
 	 */
 	function livro_preload_webfonts() {
 		?>
-		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/assets/fonts/Newsreader.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
-		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/assets/fonts/Newsreader-italic.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
+		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Newsreader.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
+		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Newsreader-italic.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
 		<?php
 	}