He wrote
I added these public methods to flexslider
To do so, you have to add those lines of code inside the jquery.flexslider.js
-file and not in another js-file as you did in the fiddle. The error tells you what the problem is. And in your case, slider
is in fact not defined, because the slider
-variable is being declared inside a codeblock of the jquery.flexslider.js
which means, there is no reference to this variable outside of this block.
The public methods start in line 426, so add your code there.