Skip to content

Instantly share code, notes, and snippets.

@engelen
Last active November 17, 2017 15:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save engelen/9df926bd9f3957394d89 to your computer and use it in GitHub Desktop.
Save engelen/9df926bd9f3957394d89 to your computer and use it in GitHub Desktop.
Use WordPress dashicons in your theme on the frontend.
<?php
add_action( 'wp_enqueue_scripts', 'mytheme_scripts' );
/**
* Enqueue Dashicons style for frontend use
*/
function mytheme_scripts() {
wp_enqueue_style( 'dashicons' );
}
@toddhalfpenny
Copy link

mytheme_scripts could be mytheme_styles, seeing as you show this along with the scripts gist over here http://jespervanengelen.com/snippets/use-wordpress-dashicons-frontend/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment