Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enqueue Google Fonts.
<?php
//* Do NOT include the opening php tag
//* Load Lato and Merriweather Google fonts
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' );
function bg_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700|Merriweather:300,700', array(), CHILD_THEME_VERSION );
}
@IamSohaggazi

This comment has been minimized.

Show comment
Hide comment
@IamSohaggazi

IamSohaggazi commented Apr 24, 2018

great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment