Created
March 20, 2020 11:02
-
-
Save abubackerbsc/f1403152be4389dc3958bc52e37aa60f to your computer and use it in GitHub Desktop.
Load Custom Fonts using Child theme in Front
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
function front_child_scripts() { | |
wp_enqueue_style( 'front-custom-fonts', get_stylesheet_directory_uri() . '/front-custom-fonts.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'front_child_scripts', 100 ); |
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
body { | |
font-family: YourFontFamily; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment