Support » Plugins » [Plugin: wp-prettyPhoto] "Object [object Object] has no method 'prettyPhoto'"

  • I recently installed Sharebar and found that another feature on my website no longer functioned correctly. A look at the js console in Chrome reports:

    Object [object Object] has no method ‘prettyPhoto’

    If I disable wp-prettyPhoto the feature works correctly. I’ve found other references to the error, but can’t quite piece together what exactly is happening and what I might be able to do to resolve the issue.

    Thanks in advance for any insight.


Viewing 2 replies - 1 through 2 (of 2 total)
  • That error usually means you’re missing a jQuery file or that there’s a conflict. You can check your html source code to make sure that jquery.prettyPhoto.js is showing up, and that you only have one version of jQuery included.

    Multiple jQuery versions on a site usually means the designer added their own on top of the default include WP jQuery. If you’ve added your own, try removing it and see what happens 🙂

    Thanks for this.

    I was having a similar issue with a custom js include.

    I removed wp_enqueue_script(‘jquery’); from my wp_head stage and the custom js started working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: wp-prettyPhoto] "Object [object Object] has no method 'prettyPhoto'"’ is closed to new replies.