0

I am hooking up flexslider into a custom Wordpress theme but running into an issue within my JS which is strange.

jQuery(document).ready(function)($) {
    $('.flexslider').flexslider();
});

It is telling me there is an unexpected token of ) but I can't see the offending part of script?

1
  • 5
    Typo: There's an extra ) after the function keyword -- ...ready(function ($) { ... }); Nov 7, 2014 at 17:18

1 Answer 1

1

You've mixed up your parentheses:

jQuery(document).ready(function)($) {
    $('.flexslider').flexslider();
});

should be:

jQuery(document).ready(function($) {
    $('.flexslider').flexslider();
});

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