How to Add Scripts and Stylesheets in WordPress

WordPress provides wp_enqueue_script and wp_enqueue_style function to add¬†Scripts and Stylesheets in a systematic way. If you’re wondering why you should use these functions when you can simply load them in header or footer, here’s why – by adding JavaScripts that way, you increase the chance of conflicting with other scripts.   Also, If we add