Last active
January 1, 2016 08:49
-
-
Save srikat/8120731 to your computer and use it in GitHub Desktop.
Adding nav sub menu indicators in Genesis using Font Awesome. http://sridharkatakam.com/adding-nav-sub-menu-indicators-genesis-using-font-awesome/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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.2.0/css/font-awesome.css' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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