Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.