I have been trying to get jquery to work on my custom worpdress theme and i cant get it to work..
I know you have to use the wp_enqueue_script() to call the jquery library and to replace the $()”, with jQuery() .
Im trying to get an image slider to show some of my work on and it just wont work..
Anyone have any ideas? Or any good sites with info/tutorials on?
I had a problem getting a smooth scroll effect using jQuery to work, and eventually found a fix that worked:
// Put all your code in your document ready area
// Do jQuery stuff using $
Whereas $.localScroll() and $.localScroll.hash() activate the scrolly effect everywhere on the page.
However I think .noConflict() can cause some conflicts with other libraries with $ object models, so be careful! If someone could enlighten me to why that is or if there’s a better way than .noConflict(), let me know at http://twitter.com/WebDojo.
So in the end I used a plugin called HeadSpace to include my localScroll and scrollTo files, and a last file I named smooth-scroll-activate.js that included the code you see above.