Aaron.kr

Code • Data • Design • Education

Tag: Dashicons

  • Quick Tip: How to Add FontAwesome (or Other Icon Fonts) to your WP Theme or Plugin

    So, you want to use FontAwesome in your Theme, eh? Add the following snippet to your functions.php file: wp_enqueue_style( ‘font-awesome’, ‘//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css’ ); Do you want to use it in your Plugin? Just place that code in one of your functions within your plugin file and hook into the wp_enqueue_scripts Action: add_action( ‘wp_enqueue_scripts’, ‘plugin_slug_load_iconfont’ ); function…