Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active January 15, 2016 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickrduncan/47cbbccf4ac804b8e9f0 to your computer and use it in GitHub Desktop.
Save rickrduncan/47cbbccf4ac804b8e9f0 to your computer and use it in GitHub Desktop.
<?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