Last active
August 29, 2015 13:56
-
-
Save srikat/8857313 to your computer and use it in GitHub Desktop.
Changing responsive menu icon from hamburger to a custom one in Genesis. Screenshot: http://i.imgur.com/27i9vFN.png. "content" codes can be obtained from http://melchoyce.github.io/dashicons/.
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
//* Enqueue Dashicons | |
add_action( 'wp_enqueue_scripts', 'dashicons' ); | |
function dashicons() { | |
wp_enqueue_style( 'themename-style', get_stylesheet_uri(), array( 'dashicons' ), '1.0' ); | |
} |
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
#responsive-menu-icon::before { | |
font-family: "dashicons"; | |
content: "\f346"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment