Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/8857313 to your computer and use it in GitHub Desktop.
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/.
//* Enqueue Dashicons
add_action( 'wp_enqueue_scripts', 'dashicons' );
function dashicons() {
wp_enqueue_style( 'themename-style', get_stylesheet_uri(), array( 'dashicons' ), '1.0' );
}
#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