Round Rock / Austin, Texas
Drupal Web Developer

How to Add Google Fonts to Drupal Theme

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/thefoxes/

How to Add Google Fonts to Drupal Theme

Drupal themes are a little special in that you have to take special steps to add tags or code to the <head> tag of your html.  If you want to include a Google Font to your theme the most efficient way to do this is to add this code snippet to your theme's template.php file:


function yourthemename_preprocess_html(&$variables) {
   drupal_add_css('', array('group' => CSS_THEME));

Reference Link for more details: