Just as the title suggests...I tried using an absolute path:
stylesheets[all][] = 'http://fonts.googleapis.com/css?family=Lato:300,400,700,900'
This doesn't work...how do I add this to a theme?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityJust as the title suggests...I tried using an absolute path:
stylesheets[all][] = 'http://fonts.googleapis.com/css?family=Lato:300,400,700,900'
This doesn't work...how do I add this to a theme?
You can add it in the theme template.php file.
function YOURTHEME_preprocess_html(&$vars) {
// Load font
drupal_add_css('//fonts.googleapis.com/css?family=Lato:300,400,700,900', array(
'type' => 'external'
));
}
Tip: Dont set a protocol to load external resources from Google
fonts[google_fonts_api][] = Archivo Black&subset=latin#regular