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!

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


Alexander Schott
Alexander Schott
8,318 Points

Error: jQuery is not defined (javascript inside a page)

I started learning javascript and I build a little pomodoro timer based on the Treehouse Quick Tips videos (Pomodoro technique and timer in javascript). The script works pretty fine in the workspace. Now i want to include it as a page on my wordpress site. I just opened a new page and clicked on the "Text" button and copy & paste my whole workspace file. I needed to remove some paragraph tags and after that, the code worked as intended, but if I check the site with the google Chrome developer tool (F12), then I see an "Uncaught ReferenceError: jQuery is not defined" error, but as i mentioned before, the Site works!

I red through some other forum threads and added <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> in front of my script section.

I also tried

(function($) {
*javascript code*

Nothing worked. Do you have any ideas? Thanks