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 One Page WordPress Site

Jonathan Whalen
Jonathan Whalen
7,201 Points

Cant get my JQuery to apply the smooth scroll animation to my navigation links, JS folder not being called properly?

I have been following along successfully up to the point where we grab the JQuery from stackoverflow to apply the smooth scrolling animation effect. When I go into the source for my page, I am unable to find either the theme.js that I made for the smooth scroll, or navigation.js, customizer.js, or skip-link-focus-fix.js which are all also included in the js folder inside of the one-page-theme. Im afraid that none of those scripts are being called, but Im confused because I didn't make any changes to the other wp_enqueue_script scripts. I only copied the one and edited it to try to call theme.js. Any suggestions? Thanks!

Guadalupe Camacho
Guadalupe Camacho
7,028 Points

Hey, I was having this problem and then I realized that I had typed in 'jQuery' with the Q capitalized rather than 'jquery' as the video shows. As soon as I made that change, I was able to locate the script in my source code.