Created
May 23, 2022 07:01
-
-
Save DxDiagDx/6e38244c40a7595494133db6210f0a44 to your computer and use it in GitHub Desktop.
WP StoreFront: как добавить Google Fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Меняем шрифт на Google Fonts */ | |
add_action( 'storefront_header', 'add_google_fonts_storefront_header', 40 ); | |
function add_google_fonts_storefront_header() { | |
?> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,200;8..144,300;8..144,400;8..144,500;8..144,600&display=swap" rel="stylesheet"> | |
<?php | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1, h2, h3, h4, h5, h6, body, button, input, textarea { | |
font-family: 'Roboto Flex', sans-serif; | |
} | |
body, button, input, textarea { | |
font-family: 'Roboto Flex', sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment