CSS code in a text editor

How to Add CSS & JavaScript Files to your WordPress Site

Ian Svoboda Development Leave a Comment

For one reason or another, you may find yourself needing to add a script or stylesheet to your WordPress site. Maybe you’re trying out a new font or you want to add a cool JavaScript plugin to your theme. There are a few different ways you can do this, but there’s one approach in particular that you should take whenever possible. Additionally, this approach is considered the “proper way” to include CSS & JavaScript files in your WordPress site, per the WordPress Codex. One upfront disclaimer: This method involves modifying the code in your theme. If you’re using a premium …