Bundling Google fonts in a WordPress Theme
-
How can I embed Google fonts in a WordPress theme, I DON’T want to enqueue it with Google.com/fonts like this –
function google_fonts() { wp_register_style('googleFonts', 'https://fonts.googleapis.com/css?family=Open+Sans:400,300,600'); wp_enqueue_style( 'googleFonts'); } add_action('wp_print_styles', 'google_fonts');
I want to bundle Google fonts with a theme so that I can pull the font picker in the customizer. I couldn’t find a tutorial in Google, all I see how to tutorials of enqueuing not bundling it. Any links or tips would be appreciated. Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bundling Google fonts in a WordPress Theme’ is closed to new replies.