Console error:

TypeError: $(...).accordion is not a function

Jquery in file calljq.js in worpdress (twentytwelve child theme ):

$(function() {
$('#st-accordion').accordion();
});

I’d like accordion + easing scrolling in this page:

http://www.lab-360.it/test-acs/?attachment_id=67

Click on “Comment” and jquery show comment scrolling to top of the page.

Here source

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=3.9.1" type="text/javascript" style=""></script>
<script src="http://www.lab-360.it/test-acs/wp-content/themes/twentytwelve/js2/jquery.accordion.js?ver=3.9.1" type="text/javascript"></script>
<script src="http://www.lab-360.it/test-acs/wp-content/themes/twentytwelve/js2/jquery.easing.1.3.js?ver=3.9.1" type="text/javascript">
<script src="http://www.lab-360.it/test-acs/wp-content/themes/twentytwelve/js2/calljq.js?ver=3.9.1" type="text/javascript"></script>

I have tried in this way:

$('#st-accordion').accordion();

It’s ok in console but accordion and scrolling doesn’t work.

Is it a conflict?

Read more here: Accordion + easing scrolling jquery


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: