SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2003
    Location
    Toronto, Ontario
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation jQuery + Wordpress Help

    Hey guys,

    I have noticed that all of my jQuery scripts have stopped working a few days ago. I updated to the latest version of wordpress 2.9.1 and a few days later my scripts stopped working.

    I've done some research and have found that you have to replace $( with jQuery( in wordpress for it to work. However this method didn't work for me.

    Here's my code:

    Code:
    <script type="text/javascript" src="http://idesigntuts.com/wp-content/themes/tuts/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
    	$(document).ready(function(){
    		//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
    		//Horizontal Sliding
    		$('.boxgrid.slideright').hover(function(){
    			$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
    		}, function() {
    			$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
    		});
    	});
    </script>
    Plugins I have installed:

    - WP Super Cache
    - WP-PageNavi
    - Search Everything
    - Magic-fields

    The weird thing is they stopped working yesterday, I haven't really changed anything structure or plugin wise for this to stop working.

    Any help would be greatly appreciated,
    Mario
    $ Available For Hire
    Need a website designed or coded? Then feel free to contact me!

    PSP Backgrounds - PSPBG.net || Photoshop Brushes - PSBrushes.net

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,258
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    The may have been working off a cached file. Are you using
    PHP Code:
    wp_enqueue_script$handle$src false$deps = array(), $ver false$in_footer false 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •