Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Working with CSS and JS in WordPress Themes How to Link to JS from functions.php File

Tom Walsh
Tom Walsh
228 Points

After adding styles and js files i am getting internal 500 error..

Following the instructions and tutorials on the video.. added the code below to functions.php:

http://imgur.com/LhKVXJX (screenshot)

And now there is an internal 500 error on the page...

1 Answer

at a quick glance it seems like you have left out the comma after each first parameter in the second function, :

function set_theme_js(){ wp_enque_script ( 'script_js' , }

compared to the style loader function above it...