Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
//* Do NOT include the opening php tag
//* STEP 1
//* Enqueue styles
add_action( 'wp_enqueue_scripts', 'b3m_enqueue_styles' );
function b3m_enqueue_styles() {
wp_enqueue_style( 'fa', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5.0' );
}
//* STEP 2
//* Use FontAwesome for Home breadcrumb icon
add_filter ( 'genesis_home_crumb', 'b3m_breadcrumb_home_icon' );
function b3m_breadcrumb_home_icon( $crumb ) {
$crumb = '<a href="' . home_url() . '" title="' . get_bloginfo('name') . '"><i class="fa fa-home fa-lg"></i> Home</a>';
return $crumb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment