Last active
February 24, 2023 05:29
-
-
Save shivapoudel/e06d3a1eb762fbf9ad6202c9a9738844 to your computer and use it in GitHub Desktop.
WordPress - Enable Dashicons in Frontend
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
<?php // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); | |
/** | |
* Enqueue the Dashicons script. | |
*/ | |
function load_dashicons_front_end() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment