I'm using <marquee> in my homepage , I want to use jquery marquee instead , I've added script in my header , in usage it says i have to use $('marquee').marquee(optionalClass); , how and where i have to use it ?

1 Answer 1


WordPress comes with copy of jQuery bundled. See wp_enqueue_script() documentation for how to:

  1. Register you script properly and make it load jQuery as dependency

  2. Use required noConflict wrapper so you can use jQUery functions (simply $ won't work in WP).

  • Thanks , I've added following code and jquery marquee is working now : <script type="text/javascript" src="http://mysite.com/wp-includes/js/jquery/jquery.marquee.js"> </script> <script> jQuery(document).ready(function($) { $('marquee').marquee(); }); </script> Sep 12, 2011 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.