Created
August 21, 2015 09:14
-
-
Save palimadra/9e44741fa0d95441256f to your computer and use it in GitHub Desktop.
How to enqueue a font properly in WordPress (specially from Google Fonts)
This file contains hidden or 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_action( 'wp_enqueue_scripts', 'my_enqueued_assets' ); | |
function my_enqueued_assets() { | |
wp_enqueue_style( 'my-font', '//fonts.googleapis.com/css?family=Roboto' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment