jQuery(…).prettyPhoto is not a function

I’ve run into an issue where prettyPhoto and the menus for the WordPress plugin WPGYM conflict. The output from the Chrome console is below.

Uncaught TypeError: jQuery(...).prettyPhoto is not a function
at HTMLDocument.<anonymous> (script.js:3)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at Function.ready (jquery.js:2)
at HTMLDocument.K (jquery.js:2)

Based on this information I’ve tracked the issue to this line from script.js.

jQuery(".gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false}); jQuery("a[rel^='prettyPhoto'], .gallery-icon a").prettyPhoto({animationSpeed:'normal',theme:'light_square', show_title : false});

As I’m not really familiar with Jquery I’m not sure how to resolve this issue. If anyone can point me in the right direction that would be much appreciated.

Read more here: jQuery(…).prettyPhoto is not a function

Leave a Reply

Your email address will not be published. Required fields are marked *