Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Last active August 29, 2015 13:57
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 JohnBunka/9678552 to your computer and use it in GitHub Desktop.
Save JohnBunka/9678552 to your computer and use it in GitHub Desktop.
Add a Dropdown Indicator to a Genesis Navigation Menu Automatically with Font Awesome
//* Make Font Awesome available
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' );
}
/* Sub menu indicators
--------------------------------------------- */
.genesis-nav-menu > .menu-item.menu-item-has-children > a:after {
content: "\f107";
font-family: 'FontAwesome';
font-size: 1.2rem;
padding-left: 0.5rem;
speak: none;
}
ul.sub-menu li.menu-item-has-children > a:after {
content: "\f105";
font-family: 'FontAwesome';
font-size: 1.2rem;
padding-left: 1rem;
speak: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment