Last active
June 8, 2017 14:13
-
-
Save ScarletPonytail/ac85d341816735991c9d8046eaaa20c5 to your computer and use it in GitHub Desktop.
Wordpress - Add Google Fonts to functions.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
$font-family-sans-serif: 'Roboto', sans-serif !default; | |
$font-family-serif: 'Lobster Two', cursive !default; | |
$font-family-special: 'Libre Franklin', sans-serif !default; |
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
// Add Google Fonts | |
function wpb_add_google_fonts() { | |
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Libre+Franklin:300|Lobster+Two|Roboto', false ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment