WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer
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> – Siavash Ahmadpour Sep 12 '11 at 21:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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