I'm trying to use font awesome icons for my plugin. I've read this page in the codex and this question.
Here's what I've tried so far:
I've added this on wp-plug-in.php (or should it be somewhere else?)
add_action( 'wp_enqueue_scripts', 'wp_styles' ); function wp_styles() { wp_register_style( 'font-awesome', plugins_url( 'wp-plug-in/css/font-awesome.min.css' ) ); wp_enqueue_style( 'font-awesome' ); }
I'm hoping I could use it the usual way like:
<i class="fa fa-twitter"></i>
But to no avail. It doesn't display anything at all. I know I'm missing out something and I'm hoping that someone could point it out and probably give me additional resources.
Thank you.
UPDATE
It turned out the theme I had activated didn't have <?php wp_head(); ?>
on the header.
Lesson learned. :) Thanks a lot @Robert and @Abhik.
<i class="fa fa-twitter" style="color:black;"></i>
. Does it show anything?