WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: wp-prettyPhoto] "Object [object Object] has no method 'prettyPhoto'" (3 posts)

  1. cliquenoir
    Member
    Posted 3 years ago #

    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.

    Cheers.

  2. Eric McNiece
    Member
    Posted 2 years ago #

    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 :)

  3. reegz
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic