Update: Add Stylesheets To WordPress Correctly
When you are developing WordPress plugin or theme then you will always get to a point where you want to add a stylesheet to the page so you can use the CSS classes on your page.
But there are a few ways of doing this but which one is right?
You can add the stylesheet link tag directly on the page using the wp_head action
You can add the stylesheet link tag directly to the page anywhere.
You can use the wp_enqueue_scripts action to add a handle to the wp_enqueue_style.
Well the correct way and they way you should always add stylesheets to your WordPress site in either your plugin or your theme is to use the wp_enqueue_style function.
Read more: http://www.paulund.co.uk/add-stylesheets-to-wordpress-correctly#WordPress #CSS #JS