Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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...