Skip to content

Instantly share code, notes, and snippets.

@studiopress
Created September 13, 2017 15:06
Show Gist options
  • Save studiopress/a2d0878b3326089801ba05194aca1e3c to your computer and use it in GitHub Desktop.
Save studiopress/a2d0878b3326089801ba05194aca1e3c to your computer and use it in GitHub Desktop.
Enqueue Ionicons on your site with the Genesis Framework.
<?php
//* Do NOT include the opening php tag
// Enqueue Ionicons.
add_action( 'wp_enqueue_scripts', 'sp_enqueue_ionicons' );
function sp_enqueue_ionicons() {
wp_enqueue_style( 'ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment