Skip to content

Instantly share code, notes, and snippets.

@mglaman
Created April 19, 2014 03:55
Show Gist options
  • Select an option

  • Save mglaman/11073579 to your computer and use it in GitHub Desktop.

Select an option

Save mglaman/11073579 to your computer and use it in GitHub Desktop.
Add FontAwesome.io to your Omega 4 subtheme
<?php
<?php
/**
* @file
* Includes preproces of html
*/
/**
* Implements hook_preprocess_html().
*/
function mytheme_preprocess_html(&$variables) {
drupal_add_css(drupal_get_path('theme', 'mytheme') . '/libraries/fontawesome/css/font-awesome.min.css', array('group' => CSS_THEME, 'type' => 'external'));
}
libraries[fontawesome][download][type] = "file"
libraries[fontawesome][download][url] = "http://fontawesome.io/assets/font-awesome-4.0.3.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment