Accordion Stopped Working

Discussion in 'WordPress' started by pratik, Feb 18, 2013.

  1. #1
    Hey.

    This is regarding a website I made for a client using a custom theme work.
    Everything was working fine until one day the accordion stopped working! I guess it happened because I updated the plugin ... The plugin developer (WP UI - Tabs, Accordion) is unavailable for comment.

    Can someone please check this link and let me know if you can find the issue
    http://www.nevatiasteel.com/approvals-certifications/
    Code (markup):
     
    pratik, Feb 18, 2013 IP
  2. innozemec

    innozemec Active Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #2
    roll back to the previous version that was working..

    here's the error i am getting:

    Timestamp: 2/19/2013 12:43:33 AM
    Error: TypeError: $(...).position(...) is undefined
    Source File: http://www.nevatiasteel.com/approvals-certifications/
    Line: 24

    in your code line 24 is:
    sliderLeft=$('#thumbScroller .container').position().left;

    #thumbScroller .container is that selector valid??
     
    innozemec, Feb 18, 2013 IP
  3. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Hey thanks.

    Not sure how to rock back to the previous version...

    but do you know any fix for the above error!!
     
    pratik, Feb 19, 2013 IP
  4. innozemec

    innozemec Active Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #4
    check in your source code if the jquery selector is valid - #thumbScroller .container
     
    innozemec, Feb 19, 2013 IP
  5. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Hey.. not sure how to do this...!!! No programming skills here...
    Just a designer using WordPress Plugins to achieve things.. ;)
     
    pratik, Feb 19, 2013 IP
  6. innozemec

    innozemec Active Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #6
    well, i did a quick look into the source code and nowehere i can find an element with id "thumbScroller"..

    so either find why that element is missing or remove the javascript about it.. maybe it is some broken plugin or something..
     
    innozemec, Feb 19, 2013 IP
  7. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #7
    Hey got the solution here...

    replaced this codes in lib.php

    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', 'http://code.jquery.com/jquery-1.7.2.min.js');
    Code (markup):
     
    pratik, Feb 19, 2013 IP
  8. innozemec

    innozemec Active Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #8
    cheers :)
     
    innozemec, Feb 19, 2013 IP