Created
March 27, 2016 17:47
-
-
Save mattmcgiv/cee48bd4c2dc0197e5e9 to your computer and use it in GitHub Desktop.
Add WP Dashicons to front-end
This file contains hidden or 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
| <?php | |
| add_action( 'wp_enqueue_scripts', 'mytheme_scripts' ); | |
| /** | |
| * Enqueue Dashicons style for frontend use when enqueuing your theme's style sheet | |
| */ | |
| function mytheme_scripts() { | |
| wp_enqueue_style( 'mytheme-style', get_stylesheet_uri(), 'dashicons' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment