Last active
November 17, 2017 15:57
-
-
Save engelen/9df926bd9f3957394d89 to your computer and use it in GitHub Desktop.
Use WordPress dashicons in your theme on the frontend.
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 | |
*/ | |
function mytheme_scripts() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mytheme_scripts
could bemytheme_styles
, seeing as you show this along with the scripts gist over here http://jespervanengelen.com/snippets/use-wordpress-dashicons-frontend/